mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-06 22:47:11 -04:00
Fix jsdoc typos and remove unnecessary comment
This commit is contained in:
parent
67f94df060
commit
213de7a941
1 changed files with 2 additions and 4 deletions
|
@ -16,7 +16,7 @@ var PGP = {
|
|||
* Encrypts the input using PGP.
|
||||
*
|
||||
* @param {string} input - plaintext to encrypt
|
||||
* @param {function} args
|
||||
* @param {Object[]} args
|
||||
* @returns {string}
|
||||
*/
|
||||
runEncrypt: function (plaintext, args) {
|
||||
|
@ -32,10 +32,8 @@ var PGP = {
|
|||
reject("Failed to read public key", error);
|
||||
}
|
||||
|
||||
// Timeout is so that UI can update before openpgp blocks thread
|
||||
openpgp.encrypt(options)
|
||||
.then(function(ciphertext) {
|
||||
console.log(ciphertext);
|
||||
resolve(ciphertext.data);
|
||||
})
|
||||
.catch(function(error) {
|
||||
|
@ -49,7 +47,7 @@ var PGP = {
|
|||
* Decrypts the input using PGP.
|
||||
*
|
||||
* @param {string} input - ciphertext to decrypt
|
||||
* @param {function} args
|
||||
* @param {Object[]} args
|
||||
* @returns {string}
|
||||
*/
|
||||
runDecrypt: function (input, args) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue