%set(name,decrypt)
%set(syntax,%%decrypt(string\,password[\,algorithm]))
%set(description,This macro decrypts the string with the password given using the standard named algorithm.  Valid algorithms are "des\, des3\, idea\, cast and bf".  The first argument is assumed to be a binary encoded value.  Binary values can be difficult to obtain\, so its reccomended that you %%encode() and %%decode() the ciphertext before using them.

The encryption routines are standard and assembly-optimized\, so you should feel free to use them in demanding environments.)
%set(author,)
%set(example,This:    %%encode(%%encrypt(hello\,world))
Returns: N1UvWE9kNGZpaWs9

If you try an decode it with the right password you get:

This:    %%decrypt(%%decode(N1UvWE9kNGZpaWs9)\,world)
Returns: hello

Try and decode it with the wrong password you get:

This:    %%decrypt(%%decode(N1UvWE9kNGZpaWs9)\,world)
Returns: %%null%%

This sets up standard encryption and decryption for the site as a base 64 encoding of the blowfish algorithm:

%%define(enc\,%%encode(%%encrypt(%%arg(0)\,%%arg(1)\,bf)\,b64))
%%define(dec\,%%decrypt(%%decode(%%arg(0)\,b64)\,%%arg(1)\,bf))

So you don't have to worry about default encoding/decoding etc..)
%set(seealso,)
