Encrypt (web::encrypt) and decrypt (web::decrypt) data. By default, the built-in, weak encryption is used. encryption is extensible by plug-Ins. The encryption module tries all plug-Ins from a list until the first plug-In was able to en-/decrypt the input. See web::config for the configuration of the plug-Ins to be used.
web::decrypt
data
Returns decrypted data.
Example 15. web::encrypt
% web::encrypt "Hello, world!" XDIVAhkgkxRjcfA7UTwpD7 % web::decrypt [web::encrypt "Hello, world!"] Hello, world! %
By default, Websh uses this plug-In for weak data encryption for encryption (web::encryptd) and decryption (web::decryptd). The encryption key is managed with web::crpytdkey.
web::encryptd
data
Returns encrypted data
.
web::cryptdkey
?key
?Sets the new key for encryption. If no argument is given, resets to the default key. This command does not return the currently active key, in difference to other configuration commands of Websh.
For plug-in developers only
The encryption plug-in is required to implement the interface described below (note that to activate your plugin, use web::config encryptchain and web::config decryptchain respectively):