mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-07 15:07: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.
|
* Encrypts the input using PGP.
|
||||||
*
|
*
|
||||||
* @param {string} input - plaintext to encrypt
|
* @param {string} input - plaintext to encrypt
|
||||||
* @param {function} args
|
* @param {Object[]} args
|
||||||
* @returns {string}
|
* @returns {string}
|
||||||
*/
|
*/
|
||||||
runEncrypt: function (plaintext, args) {
|
runEncrypt: function (plaintext, args) {
|
||||||
|
@ -32,10 +32,8 @@ var PGP = {
|
||||||
reject("Failed to read public key", error);
|
reject("Failed to read public key", error);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Timeout is so that UI can update before openpgp blocks thread
|
|
||||||
openpgp.encrypt(options)
|
openpgp.encrypt(options)
|
||||||
.then(function(ciphertext) {
|
.then(function(ciphertext) {
|
||||||
console.log(ciphertext);
|
|
||||||
resolve(ciphertext.data);
|
resolve(ciphertext.data);
|
||||||
})
|
})
|
||||||
.catch(function(error) {
|
.catch(function(error) {
|
||||||
|
@ -49,7 +47,7 @@ var PGP = {
|
||||||
* Decrypts the input using PGP.
|
* Decrypts the input using PGP.
|
||||||
*
|
*
|
||||||
* @param {string} input - ciphertext to decrypt
|
* @param {string} input - ciphertext to decrypt
|
||||||
* @param {function} args
|
* @param {Object[]} args
|
||||||
* @returns {string}
|
* @returns {string}
|
||||||
*/
|
*/
|
||||||
runDecrypt: function (input, args) {
|
runDecrypt: function (input, args) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue