mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2026-03-18 06:08:58 +00:00
update readme and fix example
This commit is contained in:
@@ -3,7 +3,7 @@ function encrypt() {
|
||||
|
||||
// read public key
|
||||
var pub_key = openpgp.key.readArmored($('#pubkey').text());
|
||||
// sign and encrypt message
|
||||
// encrypt message
|
||||
var pgp_message = openpgp.encryptMessage(pub_key.keys, $('#message').val());
|
||||
|
||||
$('#message').val(pgp_message);
|
||||
|
||||
Reference in New Issue
Block a user