decrypt - Decrypts a value with an algorythm.
decrypt(key:12345678,value:"123"[,algo:blowfish,error:var])
Note: In the followings examples, the _ between the { should be removed to make it work.
res={_{a=crypt(value:"Pierre",key:'1234567890123456',iv:"1234567890123456");
a;
decrypt(value:a,key:"1234567890123456",iv:"1234567890123456")}}.
return res=Vyykaa4u9cg=Pierre.
res={_{a=crypt(value:"Pierre",key:'1234567890123456');
decrypt(value:a,key:"1234567890123456")}}. return res=Pierre.
res={_{a=crypt(value:[1,2,3],key:'1234567890123456');
decrypt(value:a,key:"1234567890123456")}}. return res=\[1,2,3].
res={_{a=crypt(value:{"a":1,"b":"c"},key:'1234567890123456');
decrypt(value:a,key:"1234567890123456")}}. return res=\{"a":1,"b":"c"}.
res={_{a=crypt(value:{"a":1,"b":[1.2,"c"]},key:'1234567890123456');
decrypt(value:a,key:"1234567890123456")}}. return res=\{"a":1,"b":\[1.2,"c"]}.
res={_{a=crypt(value:{"a":1,"b":[1.2,"c"]},key:'1234567890123456',algo:"cast5");
decrypt(value:a,key:"1234567890123456",algo:"cast5")}}.
return res=\{"a":1,"b":\[1.2,"c"]}.
res={_{a=crypt(value:{"a":1,"b":[1.2,"c"]},key:'1234567890123456',algo:"twofish128");
decrypt(value:a,key:"1234567890123456",algo:"twofish128")}}.
return res=\{"a":1,"b":\[1.2,"c"]}.
res={_{
a=crypt(value:{"a":1,"b":[1.2,"c"]},key:'1234567890123456',algo:"twofish128");
decrypt(error:e,value:'a',key:"1234567890123456",algo:"twofish128");
e;
}}. return res=.*decode.*.
res={_{
a=crypt(value:{"a":1,"b":[1.2,"c"]},key:'1234567890123456',algo:"twofish128");
decrypt(value:'a',key:"1234567890123456",algo:"twofish128");
e;
}}. return .*decode.*
res={_{a=crypt(value:{"a":1,"b":[1.2,"c"]},key:'1234567890123456',algo:"aes192");
decrypt(value:a,key:"1234567890123456",algo:"aes192")}}. return res=\{"a":1,"b":\[1.2,"c"]}.
res={_{a=crypt(value:{"a":1,"b":[1.2,"c"]},key:'12345678',algo:"des");
decrypt(value:a,key:"12345678",algo:"des")}}. return res=\{"a":1,"b":\[1.2,"c"]}.
res={_{
a=crypt(error:e,value:{"a":1,"b":[1.2,"c"]},key:'1345678',algo:"des");
e;
}}. return res=.*Failed setting the key.*.
res={_{a=crypt(value:{"a":1,"b":[1.2,"c"]},key:'1234567890123456',algo:"x3des");
decrypt(value:a,key:"1234567890123456",algo:"3des")}}. return .*This algorithm.*
Written by Pierre Laplante and Caroline Laplante, <laplante@sednove.com>
Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin commodo. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis.
1.0 2014-09-09 21:24:14 laplante@sednove.com