Initial import of encrypt, key gen, and decrypt functionality
Minor cleanup mods from Chris Swenson