Comments (2)
keySize
seems not to be a cfg field for Cipher in CryptoJS (CryptoES keeps consistent with CryptoJS).
The keySize
is set in sub cipher's definition body,
and passed into kdf.execute before the cipher's instance merging cfg:
The cipher
here in cipher.keySize
is a constructor like CryptoJS.algo.AES
, not a instance with cfg merged.
I tracked it in debug mode, when I passed a keySize: 16
, it seemed still keySize 8(The value set in AES) is passed into kdf.execute. Will the keySize passed into cfg affects the result in your case?
(All this are tested in CryptoJS and CryptoES has same logic with it.)
from crypto-es.
It makes sense.
from crypto-es.
Related Issues (20)
- Crypto-ES examples doesn't compile with VSC / Typescript HOT 2
- yarn couldn't find any versions for that matches "^1.2.7" HOT 3
- Wrong typing expected in the hasher for PBKDF2 HOT 2
- skipLibCheck doesn't appear to be needed HOT 2
- When can we expect Diffie-Hellman to be added to this library
- no types HOT 1
- How hash could be converted to Uint8Array? HOT 1
- openssl
- not working with openssl HOT 1
- Testing with Jest HOT 5
- TripleDes / Des encrypt & decrypt result are not same as crypto-js HOT 3
- Unable to ng-build-prod
- Hashing/Decrypting bug HOT 1
- Cannot find declaration file for module 'cryptoES/lib/RC4' HOT 1
- Utf8 isn't exported in CryptoES, but is in CryptoJS, however it seems to exist when called like CryptoES.enc.Utf8 HOT 1
- Error in Electron: "Must use import to load ES Module" HOT 1
- ReferenceError: window is not defined when importing CryptoES with the newer 2.0.0 version HOT 10
- Falling back to `Math.random()` even if polyfill is used HOT 3
- [Query]: Can we encrypt using `crypto-js` library and decrypt using `crypto-es` library? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crypto-es.