Browse Source

Switch to cryptobox keygen

Vishnu Mohandas 4 years ago
parent
commit
1330ef07d2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/utils/crypto_util.dart

+ 1 - 1
lib/utils/crypto_util.dart

@@ -169,7 +169,7 @@ class CryptoUtil {
   }
 
   static Uint8List generateMasterKey() {
-    return Sodium.cryptoKdfKeygen();
+    return Sodium.cryptoSecretboxKeygen();
   }
 
   static Uint8List getSaltToDeriveKey() {