DecryptForThisServer (open)
Decrypt data with this server's local key
Syntax
LOADLIB "mod::system/lib/services.whlib";
VARIANT FUNCTION DecryptForThisServer(STRING scope, STRING data, RECORD options)Parameters
STRING scopeScope for encryption (must match scope used when encrypting)
STRING dataData to encrypt
RECORD optionsOptions
acceptretiredAlso accept data encrypted with a retired secret that hasn't been disabled yet. Only use this for data that may need to remain valid for a long time and is not security sensitive, eg. form targets in published pages
algorithmAlgorithm to use, defaults to 'SHA-1,BLOWFISH+CBC,8'
fallbackFallback value if decryption failed. If not specified, the function will throw on decryption failure
Return value
VARIANTDecrypted data