Exemplo n.º 1
0
 return aesCbc.encrypt(kdbxweb.ByteUtils.hexToBytes(data), kdbxweb.ByteUtils.hexToBytes(iv)).then(res => {
     if (kdbxweb.ByteUtils.bytesToHex(res) !== exp) {
         throw 'AES is not working properly';
     }
     if (kdbxweb.CryptoEngine.random(1).length !== 1) {
         throw 'Random is not working';
     }
 });