Added Base64 encoding on encrypt and decrypt