mirror of
https://github.com/timvisee/send.git
synced 2026-04-18 21:54:11 -04:00
gcm encryption
This commit is contained in:
committed by
Danny Coates
parent
a7fcb1a44f
commit
50995238bd
@@ -12,7 +12,7 @@ function ivToStr(iv) {
|
||||
}
|
||||
|
||||
function strToIv(str) {
|
||||
const iv = new Uint8Array(16);
|
||||
const iv = new Uint8Array(12);
|
||||
for (let i = 0; i < str.length; i += 2) {
|
||||
iv[i / 2] = parseInt(str.charAt(i) + str.charAt(i + 1), 16);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user