String encryptPassword(String password){ List<int> bytes = utf8.encode(password); String base64Encoded = base64.encode(bytes); return base64Encoded; }