Example Encryption/Encoding module example API 2.0

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.

GitHub cyberfly-us/KCG-Encryption

6 Likes

ok thank you !
looks good
when compiling it asked icon paypal from about box
i tried RSA 2048
it says

It should have been internal to the application in the about folder. I’ll look into it. Thanks for the feedback.

Neat, this is good!

FYI, we came up with a xojo-only version of the RC4 algorithm: Speedy encryption and decryption - #13 by Mike_D

If you’d like to add that to your module as well, feel free to.

3 Likes

Thanks Mike! RC4 (ARC4) is now in the module. I was having trouble with using your code for strings so I rolled my own. Adding it was a good idea.

2 Likes