Remove debug code
This commit is contained in:
parent
d2913ccb8a
commit
775aa96118
@ -8,8 +8,6 @@ $key = OpenPGP_Message::parse(file_get_contents(dirname(__FILE__) . '/../tests/d
|
|||||||
$data = new OpenPGP_LiteralDataPacket('This is text.', array('format' => 'u', 'filename' => 'stuff.txt'));
|
$data = new OpenPGP_LiteralDataPacket('This is text.', array('format' => 'u', 'filename' => 'stuff.txt'));
|
||||||
$encrypted = OpenPGP_Crypt_Symmetric::encrypt($key, new OpenPGP_Message(array($data)));
|
$encrypted = OpenPGP_Crypt_Symmetric::encrypt($key, new OpenPGP_Message(array($data)));
|
||||||
|
|
||||||
echo $encrypted->to_bytes();exit;
|
|
||||||
|
|
||||||
// Now decrypt it with the same key
|
// Now decrypt it with the same key
|
||||||
$decryptor = new OpenPGP_Crypt_RSA($key);
|
$decryptor = new OpenPGP_Crypt_RSA($key);
|
||||||
$decrypted = $decryptor->decrypt($encrypted);
|
$decrypted = $decryptor->decrypt($encrypted);
|
||||||
|
Loading…
Reference in New Issue
Block a user