Add more encryption tests.
Change sym-algo to cipher and zip-algo to compress.
Update some encoding functions.
Fix spacing in keyring ns.