A wrapper for gpg binary
List of Global Functions
CreateKey - Create a new gpg key. Executes 'gpg --gen-key' in an xterm window (in the QT UI) or in the terminal window (in the ncurses UI).
ExportAsciiPublicKey - Export a public gpg key in ACSII armored file.
ExportPublicKey - Export a public gpg key in binary format.
Init - (Re)initialize the module, the cache is invalidated if the home directory is changed.
PrivateKeys - Return list of the private keys in the keyring.
PublicKeys - Return list of the public keys in the keyring.
SignAsciiDetached - Sign a file. The ASCII armored signature is stored in file with .asc suffix
SignDetached - Sign a file. The binary signature is stored in file with .sig suffix
VerifyFile - Verify a file using a signature file. The key which has been used for signing must be imported in the keyring.
List of Global Variables
Create a new gpg key. Executes 'gpg --gen-key' in an xterm window (in the QT UI) or in the terminal window (in the ncurses UI).
Return value
void
Export a public gpg key in ACSII armored file.
Function parameters
string keyid
string file
Return value
boolean - true if the file has been successfuly signed
Export a public gpg key in binary format.
Function parameters
string keyid
string file
Return value
boolean - true if the file has been successfuly signed
(Re)initialize the module, the cache is invalidated if the home directory is changed.
Function parameters
string home_dir
boolean force
Return value
void
Return list of the private keys in the keyring.
Return value
list<map> - public keys: [ $["fingerprint": string key_fingerprint, "id": string key_ID, "uid": list<string> user_ids], ...]
Return list of the public keys in the keyring.
Return value
list<map> - public keys: [ $["fingerprint": string key_fingerprint, "id": string key_ID, "uid": list<string> user_ids], ...]
Sign a file. The ASCII armored signature is stored in file with .asc suffix
Function parameters
string keyid
string file
string passphrase
Return value
boolean - true if the file has been successfuly signed
Sign a file. The binary signature is stored in file with .sig suffix
Function parameters
string keyid
string file
string passphrase
Return value
boolean - true if the file has been successfuly signed