Skip to content

Commit 6c21307

Browse files
author
Anand
committed
fixed bugs issue #32 #33 #34 - added migrate option and tag as a regular field - issues #30 #31
1 parent 6eee322 commit 6c21307

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crypto.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ func decryptFileAES(encDbPath string, password string) error {
278278
return err
279279
}
280280

281-
err, origFile = rewriteBaseFile(encDbPath, plainText, 0600)
281+
err, origFile = rewriteFile(encDbPath, plainText, 0600)
282282

283283
if err != nil {
284284
fmt.Printf("Error writing decrypted data to %s - \"%s\"\n", origFile, err.Error())
@@ -425,8 +425,8 @@ func decryptFileXChachaPoly(encDbPath string, password string) error {
425425
return err
426426
}
427427

428-
// err = os.WriteFile("test.sqlite3", plainText, 0600)
429-
err, origFile = rewriteBaseFile(encDbPath, plainText, 0600)
428+
// err = os.WriteFile("test.sqlite3", oplainText, 0600)
429+
err, origFile = rewriteFile(encDbPath, plainText, 0600)
430430

431431
if err != nil {
432432
fmt.Printf("Error writing decrypted data to %s - \"%s\"\n", origFile, err.Error())

0 commit comments

Comments
 (0)