fix reaction- decryption

This commit is contained in:
PhilReact 2024-12-14 23:24:34 +02:00
parent 46e3d9bcac
commit 50955941e4

View File

@ -263,7 +263,7 @@ export const decryptSingle = async ({ data64, secretKeyObject, skipDecodeBase64
} else {
if (hasTypeNumber) {
// const typeNumberStr = new TextDecoder().decode(typeNumberBytes);
if(decodeForNumber.slice(10, 13) === '002'){
if(decodeForNumber.slice(10, 13) !== '001'){
const decodedBinary = base64ToUint8Array(decodedData);
const highestKeyBytes = decodedBinary.slice(0, 10); // if ASCII digits only
const highestKeyStr = new TextDecoder().decode(highestKeyBytes);