aboutsummaryrefslogtreecommitdiff
path: root/internal/crypt/rawEncrypt.go
diff options
context:
space:
mode:
authorishaan <contact@ishaan.cc>2026-07-15 07:23:47 +0530
committerishaan <contact@ishaan.cc>2026-07-15 07:23:47 +0530
commit8ebc072fb0ceae229196e8d3d8ff15bbbc049fdd (patch)
tree922ae6355ec6806dc5366a55582038b7b90cf76d /internal/crypt/rawEncrypt.go
parent4c64c1f923d2e1b8b5925b0d2d7f7fbd7b38e6a2 (diff)
better encrypted/decrypted file perms
Diffstat (limited to 'internal/crypt/rawEncrypt.go')
-rw-r--r--internal/crypt/rawEncrypt.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/crypt/rawEncrypt.go b/internal/crypt/rawEncrypt.go
index a138753..03f742f 100644
--- a/internal/crypt/rawEncrypt.go
+++ b/internal/crypt/rawEncrypt.go
@@ -22,7 +22,7 @@ func EncryptBytesPass(inputBytes []byte, password []byte) ([]byte, error) {
headers := FileHeaders{Salt: salt, Nonce: nonce, Type: File, Parts: 1, Auth: Pass, Recipients: []WrappedKey{}}
- key := argon2.IDKey(password, headers.Salt[:], 1, 64*1024*1024, 2, 32)
+ key := argon2.IDKey(password, headers.Salt[:], 1, 2*1024*1024, 2, 32)
TryMlock(key)
defer clear(key)
aead, err := chacha20poly1305.New(key)