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 scope

Scope for encryption (must match scope used when encrypting)

STRING data

Data to encrypt

RECORD options

Options

acceptretired

Also 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

algorithm

Algorithm to use, defaults to 'SHA-1,BLOWFISH+CBC,8'

fallback

Fallback value if decryption failed. If not specified, the function will throw on decryption failure

Return value

VARIANT

Decrypted data