Fix k length

This commit is contained in:
Diego Mello 2024-05-14 10:16:26 -03:00
parent 56404bcab1
commit 058efeb7e8
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ export const toString = (thing: string | ByteBuffer | Buffer | ArrayBuffer | Uin
};
export const randomPassword = (): string => `${random(3)}-${random(3)}-${random(3)}`.toLowerCase();
export const generateAESCTRKey = () => SimpleCrypto.utils.randomBytes(16);
export const generateAESCTRKey = () => SimpleCrypto.utils.randomBytes(32);
export const exportAESCTR = key => {
// Web Crypto format of a Secret Key