Skip to content

Commit 630f31c

Browse files
author
Anand
committed
Xchache also use Argon2
1 parent b07f16a commit 630f31c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crypto.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ func encryptFileXChachaPoly(dbPath string, password string) error {
306306
return err
307307
}
308308

309-
err, key, salt = generateKey(password, nil)
309+
err, key, salt = generateKeyArgon2(password, nil)
310310

311311
if err != nil {
312312
fmt.Printf("Error - Key derivation failed -\"%s\"\n", err)
@@ -384,7 +384,7 @@ func decryptFileXChachaPoly(encDbPath string, password string) error {
384384
// Read the hmac hash checksum
385385
hmacHash, encText = encText[:HMAC_SHA512_SIZE], encText[HMAC_SHA512_SIZE:]
386386

387-
err, key, _ = generateKey(password, &salt)
387+
err, key, _ = generateKeyArgon2(password, &salt)
388388

389389
if err != nil {
390390
fmt.Printf("Error - Key derivation failed -\"%s\"\n", err)

0 commit comments

Comments
 (0)