Return base64 encoded string
This commit is contained in:
parent
87fd87987a
commit
9e641ba57d
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue