Encrypt and Decrypt without module
I need to encrypt/decrypt a string without using a non-builtin module. I'm working on a library below, and in the database section, I need to encode some stuff. Can you refer me to some resources?
without using a non-builtin module
Why? You may as well use a built in module, as you would have to re-make an existing algorithm or make your own - both of which are incredibly dangerous (the former is dangerous if you make a mistake in the algorithm or don't know what you are doing, and the latter is almost always going to be inferior to existing algorithms out there).
Encryption algorithms are complex for a reason - they aren't meant to be broken easily!