Skip to content

Commit

Permalink
fix: use AES-GSM not AES-CBC, closes #362
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranjamie committed Dec 16, 2020
1 parent fb6408c commit a54b2c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/crypto/key-encryption.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Buffer } from 'buffer';

const algorithmName = 'AES-CBC';
const algorithmName = 'AES-GCM';

function extractEncryptionKey(hash: Uint8Array) {
return hash.slice(0, 32);
Expand Down

0 comments on commit a54b2c5

Please sign in to comment.