EncryptForThisServer (open)
Encrypt data with this server's local key
Syntax
LOADLIB "mod::system/lib/services.whlib";
STRING FUNCTION EncryptForThisServer(STRING scope, VARIANT data, RECORD options)Parameters
STRING scopeScope for encryption (must be unique for each Encrypt usage so you can't accidentally mix up calls)
VARIANT dataData to sign and encrypt. Will be encoded as necessary
RECORD optionsOptions
algorithmAlgorithm to use, defaults to 'SHA-1,BLOWFISH+CBC,8'
Return value
STRINGUFS encoded encrypted and signed data