Eric Foster 35b96bc934 initial commit | 6 gadus atpakaļ | |
---|---|---|
.. | ||
modes | 6 gadus atpakaļ | |
.travis.yml | 6 gadus atpakaļ | |
LICENSE | 6 gadus atpakaļ | |
README.md | 6 gadus atpakaļ | |
aes.js | 6 gadus atpakaļ | |
authCipher.js | 6 gadus atpakaļ | |
browser.js | 6 gadus atpakaļ | |
decrypter.js | 6 gadus atpakaļ | |
encrypter.js | 6 gadus atpakaļ | |
ghash.js | 6 gadus atpakaļ | |
incr32.js | 6 gadus atpakaļ | |
index.js | 6 gadus atpakaļ | |
package.json | 6 gadus atpakaļ | |
streamCipher.js | 6 gadus atpakaļ |
Node style aes for use in the browser. Implements:
In node.js, the crypto
implementation is used, in browsers it falls back to a pure JavaScript implementation.
Much of this library has been taken from the aes implementation in triplesec, a partial derivation of crypto-js.
EVP_BytesToKey
is a straight up port of the same function from OpenSSL as there is literally no documenation on it beyond it using 'undocumented extensions' for longer keys.