This module provides promised based shortcuts to some gpg commands

Source:

Methods

(inner) decrypt(passphrase, ciphertext) → {Q.Promise.<string>}

Parameters:
Name Type Description
passphrase string

passphrase to decrypt with

ciphertext string

encrypted text

Source:
Returns:

promise to return clear text string

Type
Q.Promise.<string>

(inner) decryptFile(passphrase, cipherFilePath) → {Q.Promise.<string>}

Parameters:
Name Type Description
passphrase string

passphrase to decrypt with

cipherFilePath string

path to encrypted file

Source:
Returns:

promise to return clear text string

Type
Q.Promise.<string>

(inner) encrypt(passphrase, cleartext) → {Q.Promise.<string>}

Parameters:
Name Type Description
passphrase string

encryption passphrase

cleartext string

data to encrypt

Source:
Returns:
  • promise for an encrypted string
Type
Q.Promise.<string>

(inner) encryptFile(passphrase, filePath) → {Q.Promise.<string>}

Parameters:
Name Type Description
passphrase string

encryption passphrase

filePath string

path to file

Source:
Returns:
  • promise for an encrypted string
Type
Q.Promise.<string>

(inner) generatePass() → {Q.Promise.<string>}

Source:
Returns:
Type
Q.Promise.<string>