浏览代码

Switch to cryptobox keygen

Vishnu Mohandas 4 年之前
父节点
当前提交
1330ef07d2
共有 1 个文件被更改,包括 1 次插入1 次删除
  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() {