Removed all references to base64 convertion in the encryption methods + added type extensions for base64 conversion