encryptPassword function

String encryptPassword(
  1. String password
)

Implementation

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