mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-03-30 15:08:32 +00:00
Fix typo in symmetric encryption example in README.md (#1042)
This commit is contained in:
parent
93c5bed64b
commit
21c7d69f56
@ -169,7 +169,7 @@ Encryption will use the algorithm specified in config.encryption_cipher (default
|
||||
});
|
||||
const encrypted = message.packets.write(); // get raw encrypted packets as Uint8Array
|
||||
|
||||
const { data: decrypted } = await openpgp.encrypt({
|
||||
const { data: decrypted } = await openpgp.decrypt({
|
||||
message: await openpgp.message.read(encrypted), // parse encrypted bytes
|
||||
passwords: ['secret stuff'], // decrypt with password
|
||||
format: 'binary' // output as Uint8Array
|
||||
|
Loading…
x
Reference in New Issue
Block a user