Return base64 encoded string

This commit is contained in:
Vishnu Mohandas 2020-09-10 05:18:11 +05:30
parent 87fd87987a
commit 9e641ba57d

View file

@ -15,7 +15,7 @@ class CryptoUtil {
}
static String getSecureRandomString({int length = 32}) {
return SecureRandom(length).utf8;
return SecureRandom(length).base64;
}
static Uint8List scrypt(Uint8List plainText, Uint8List salt) {