// Only one PGP key can be uploaded. This was done to prevent
// encrypting with multiple keys.
// If there is a PGP key name set in the "security.cfg" file,
// then just display a message indicating that a key has
// has alread been generated.
var CheckKeyName = doAction ('DATA_GETCONFIGDATA', 'ObjectName', 'SecurityCfg', 'RowName', 'PGPKeyName', 'ColName', 'Value');
if ( (CheckKeyName) && (CheckKeyName.toLowerCase() != "none") )
write('Your encryption key has been generated.');