Encrypts (web::encrypt) and decrypts (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.
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 (very) weak data encryption (web::encryptd) and decryption (web::decryptd). The encryption key is managed with web::crpytdkey.
Sets a 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 plug-in, use web::config encryptchain and web::config decryptchain respectively):