fixed email link encryption/decryption/generation