My third plugin for Servoy is packed with 12 functions all about encryption, encoding etc. It is named Cryptor.
You will find the following functions in here
Base64 encoding
1. Base64encode
Base64 encode a file, picture or any array of bytes into a string.
2. Base64decode
decode a string previously encoded into itM-^Rs original form.
Blowfish encryption
3. BLOWFISHencrypt
Blowfish encrypt a string with an optional user key.
4. BLOWFISHdecrypt
decrypt a string previously encrypted with the above function.
CRC32 checksum
5. CRC32
calculate checksum of a string, picture or whatever array of bytes
6. CRC32equals
compare a string, picture or whatever array of bytes agains an earlier calculated checksum
DES encryption
7. DESencrypt
java DES encrypt a string with an optional user key.
8. DESdecrypt
decrypt a string previously encrypted with the above function.
MD5 128 bits hash algorythm
9. MD5
calculate MD5 hash algorythm of a string, picture or whatever array of bytes
10. MD5equals
compare a string, picture or whatever array of bytes agains an earlier produced MD5 hash algorythm
SHA-1 160 bits hash algorythm
11. SHA
calculate SHA-1 hash algorythm of a string, picture or whatever array of bytes
12. SHAequals
compare a string, picture or whatever array of bytes agains an earlier produced SHA-1 hash algorythm
The result is attached. Just drop it in your plugins folder and restart Servoy.
REMARK: Be careful using it and test it first please since I lacked the time doing so. If you find any errors please report them te me.
Feel free to use it and distribute it but give me credit for it.
The plugin is free, provided M-^Qas isM-^R and I can not take any responsibility for the way it behaves or works.
Please give me feedback on what you think of it...
Cheers