diff --git a/SharpbinV3.Client/src/lib/utils/encryption.ts b/SharpbinV3.Client/src/lib/utils/encryption.ts index 34a1b4b..6e5a3b8 100644 --- a/SharpbinV3.Client/src/lib/utils/encryption.ts +++ b/SharpbinV3.Client/src/lib/utils/encryption.ts @@ -20,8 +20,8 @@ function fromBase64(data: string): Uint8Array { export async function encryptAES(content: string, password: string): Promise { const enc = new TextEncoder(); - const salt = window.crypto.getRandomValues(new Uint8Array(32)); - const memorySize = 65536; + const salt = window.crypto.getRandomValues(new Uint8Array(16)); + const memorySize = 262144; const iterations = 3; const parallelism = 1; @@ -37,8 +37,8 @@ export async function encryptAES(content: string, password: string): Promise