Skip to content

Commit

Permalink
chore: remove console
Browse files Browse the repository at this point in the history
  • Loading branch information
AricRedemption committed Sep 5, 2024
1 parent 2a7101e commit cf165f3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/lib/crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -535,18 +535,13 @@ export function decrypt(encryptedText: string, password: string) {
const { SECRET_KEY, SECRET_IV } = getSecretData(password)
const encryptedHexStr = CryptoJS.enc.Hex.parse(encryptedText)
const str = CryptoJS.enc.Base64.stringify(encryptedHexStr)
console.log(11111);


const decrypt = CryptoJS.AES.decrypt(str, SECRET_KEY, {
iv: SECRET_IV,
mode: CryptoJS.mode.CBC,
padding: CryptoJS.pad.Pkcs7,
})
console.log(222222);

const decryptedStr = decrypt.toString(CryptoJS.enc.Utf8)
console.log(3333);

return decryptedStr.toString()
}

Expand Down

0 comments on commit cf165f3

Please sign in to comment.