Open AzranAzwer opened 1 year ago
import * as CryptoJS from 'crypto-js' import ZeroPadding from 'crypto-js/pad-zeropadding' import ECB from 'crypto-js/mode-ecb' const encrypted = CryptoJS.AES.encrypt("dataString", "KEYString" { mode: ECB, padding: ZeroPadding }).toString() const fin = stringToBytes(encrypted) console.log('encrypted', fin)
Followed above pattern, giving the wrong output.
Followed above pattern, giving the wrong output.