Remove to_bytes() methods
This commit is contained in:
@@ -32,7 +32,7 @@ class Symmetric
|
||||
$key = Random::string($key_bytes);
|
||||
$cipher->setKey($key);
|
||||
|
||||
$to_encrypt = $prefix.$message->to_bytes();
|
||||
$to_encrypt = $prefix.$message;
|
||||
|
||||
$mdc = new OpenPGP\ModificationDetectionCodePacket(hash('sha1',$to_encrypt."\xD3\x14",true));
|
||||
$to_encrypt .= (string)$mdc;
|
||||
|
Reference in New Issue
Block a user