Beta code for smtp and public key encryption