Some time back I needed encryption for a project in API 2.0. I did not want to have to use a plugin for it. This sent me down the path of exploring pure XOJO code and using the built in functionality. I also decided that it would be nice if I put it all together in a module the I could just drag in when I need it. So I created KCG Encryption as an example project to hold my module.
It does the following Encryption/Encoding:
Base64
AES-256
RSA-2048
Hash256
Hash512
Blowfish(CBC)
I made it available on GitHub in case anybody else finds it useful as a module or an example.