├── .gitignore ├── .vscode └── launch.json ├── AGENTS.md ├── CHANGELOG.md ├── CLAUDE.md ├── LICENSE ├── README.md ├── __tests__ ├── aes-roundtrip.test.ts ├── aes.test.ts ├── blowfish.test.ts ├── config.test.ts ├── des.test.ts ├── enc-base64.test.ts ├── enc-hex.test.ts ├── enc-latin1.test.ts ├── enc-utf16.test.ts ├── enc-utf8.test.ts ├── evpkdf.test.ts ├── format-openssl.test.ts ├── hmac-md5.test.ts ├── hmac-sha224.test.ts ├── hmac-sha256.test.ts ├── hmac-sha384.test.ts ├── hmac-sha512.test.ts ├── kdf-openssl.test.ts ├── lib-base.test.ts ├── lib-cipherparams.test.ts ├── lib-passwordbasedcipher.test.ts ├── lib-serializablecipher.test.ts ├── lib-typedarrays.test.ts ├── lib-wordarray.test.ts ├── md5.test.ts ├── mode-cbc.test.ts ├── mode-cfb.test.ts ├── mode-ctr.test.ts ├── mode-ecb.test.ts ├── mode-ofb.test.ts ├── pad-ansix923.test.ts ├── pad-iso10126.test.ts ├── pad-iso97971.test.ts ├── pad-pkcs7.test.ts ├── pad-zeropadding.test.ts ├── pbkdf2.test.ts ├── rabbit-legacy.test.ts ├── rabbit.test.ts ├── rc4.test.ts ├── ripemd160.test.ts ├── sha1.test.ts ├── sha224.test.ts ├── sha256.test.ts ├── sha3.test.ts ├── sha384.test.ts ├── sha512.test.ts ├── tripledes.test.ts ├── x64-word.test.ts └── x64-wordarray.test.ts ├── devdoc └── logo.png ├── package.json ├── src ├── aes.ts ├── blowfish.ts ├── cipher-core.ts ├── core.ts ├── enc-base64.ts ├── enc-base64url.ts ├── enc-utf16.ts ├── evpkdf.ts ├── format-hex.ts ├── hmac.ts ├── index.ts ├── md5.ts ├── mode-cfb.ts ├── mode-ctr-gladman.ts ├── mode-ctr.ts ├── mode-ecb.ts ├── mode-ofb.ts ├── pad-ansix923.ts ├── pad-iso10126.ts ├── pad-iso97971.ts ├── pad-nopadding.ts ├── pad-zeropadding.ts ├── pbkdf2.ts ├── rabbit-legacy.ts ├── rabbit.ts ├── rc4.ts ├── ripemd160.ts ├── sha1.ts ├── sha224.ts ├── sha256.ts ├── sha3.ts ├── sha384.ts ├── sha512.ts ├── tripledes.ts └── x64-core.ts ├── tsconfig.json ├── tsdown.config.ts └── vitest.config.ts /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_STORE 2 | node_modules 3 | yarn-error.log 4 | p42.toml 5 | dist 6 | -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /AGENTS.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/AGENTS.md -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CLAUDE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/CLAUDE.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/README.md -------------------------------------------------------------------------------- /__tests__/aes-roundtrip.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/aes-roundtrip.test.ts -------------------------------------------------------------------------------- /__tests__/aes.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/aes.test.ts -------------------------------------------------------------------------------- /__tests__/blowfish.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/blowfish.test.ts -------------------------------------------------------------------------------- /__tests__/config.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/config.test.ts -------------------------------------------------------------------------------- /__tests__/des.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/des.test.ts -------------------------------------------------------------------------------- /__tests__/enc-base64.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/enc-base64.test.ts -------------------------------------------------------------------------------- /__tests__/enc-hex.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/enc-hex.test.ts -------------------------------------------------------------------------------- /__tests__/enc-latin1.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/enc-latin1.test.ts -------------------------------------------------------------------------------- /__tests__/enc-utf16.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/enc-utf16.test.ts -------------------------------------------------------------------------------- /__tests__/enc-utf8.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/enc-utf8.test.ts -------------------------------------------------------------------------------- /__tests__/evpkdf.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/evpkdf.test.ts -------------------------------------------------------------------------------- /__tests__/format-openssl.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/format-openssl.test.ts -------------------------------------------------------------------------------- /__tests__/hmac-md5.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/hmac-md5.test.ts -------------------------------------------------------------------------------- /__tests__/hmac-sha224.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/hmac-sha224.test.ts -------------------------------------------------------------------------------- /__tests__/hmac-sha256.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/hmac-sha256.test.ts -------------------------------------------------------------------------------- /__tests__/hmac-sha384.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/hmac-sha384.test.ts -------------------------------------------------------------------------------- /__tests__/hmac-sha512.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/hmac-sha512.test.ts -------------------------------------------------------------------------------- /__tests__/kdf-openssl.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/kdf-openssl.test.ts -------------------------------------------------------------------------------- /__tests__/lib-base.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/lib-base.test.ts -------------------------------------------------------------------------------- /__tests__/lib-cipherparams.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/lib-cipherparams.test.ts -------------------------------------------------------------------------------- /__tests__/lib-passwordbasedcipher.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/lib-passwordbasedcipher.test.ts -------------------------------------------------------------------------------- /__tests__/lib-serializablecipher.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/lib-serializablecipher.test.ts -------------------------------------------------------------------------------- /__tests__/lib-typedarrays.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/lib-typedarrays.test.ts -------------------------------------------------------------------------------- /__tests__/lib-wordarray.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/lib-wordarray.test.ts -------------------------------------------------------------------------------- /__tests__/md5.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/md5.test.ts -------------------------------------------------------------------------------- /__tests__/mode-cbc.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/mode-cbc.test.ts -------------------------------------------------------------------------------- /__tests__/mode-cfb.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/mode-cfb.test.ts -------------------------------------------------------------------------------- /__tests__/mode-ctr.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/mode-ctr.test.ts -------------------------------------------------------------------------------- /__tests__/mode-ecb.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/mode-ecb.test.ts -------------------------------------------------------------------------------- /__tests__/mode-ofb.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/mode-ofb.test.ts -------------------------------------------------------------------------------- /__tests__/pad-ansix923.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/pad-ansix923.test.ts -------------------------------------------------------------------------------- /__tests__/pad-iso10126.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/pad-iso10126.test.ts -------------------------------------------------------------------------------- /__tests__/pad-iso97971.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/pad-iso97971.test.ts -------------------------------------------------------------------------------- /__tests__/pad-pkcs7.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/pad-pkcs7.test.ts -------------------------------------------------------------------------------- /__tests__/pad-zeropadding.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/pad-zeropadding.test.ts -------------------------------------------------------------------------------- /__tests__/pbkdf2.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/pbkdf2.test.ts -------------------------------------------------------------------------------- /__tests__/rabbit-legacy.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/rabbit-legacy.test.ts -------------------------------------------------------------------------------- /__tests__/rabbit.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/rabbit.test.ts -------------------------------------------------------------------------------- /__tests__/rc4.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/rc4.test.ts -------------------------------------------------------------------------------- /__tests__/ripemd160.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/ripemd160.test.ts -------------------------------------------------------------------------------- /__tests__/sha1.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/sha1.test.ts -------------------------------------------------------------------------------- /__tests__/sha224.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/sha224.test.ts -------------------------------------------------------------------------------- /__tests__/sha256.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/sha256.test.ts -------------------------------------------------------------------------------- /__tests__/sha3.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/sha3.test.ts -------------------------------------------------------------------------------- /__tests__/sha384.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/sha384.test.ts -------------------------------------------------------------------------------- /__tests__/sha512.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/sha512.test.ts -------------------------------------------------------------------------------- /__tests__/tripledes.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/tripledes.test.ts -------------------------------------------------------------------------------- /__tests__/x64-word.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/x64-word.test.ts -------------------------------------------------------------------------------- /__tests__/x64-wordarray.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/__tests__/x64-wordarray.test.ts -------------------------------------------------------------------------------- /devdoc/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/devdoc/logo.png -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/package.json -------------------------------------------------------------------------------- /src/aes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/src/aes.ts -------------------------------------------------------------------------------- /src/blowfish.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/src/blowfish.ts -------------------------------------------------------------------------------- /src/cipher-core.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/src/cipher-core.ts -------------------------------------------------------------------------------- /src/core.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/src/core.ts -------------------------------------------------------------------------------- /src/enc-base64.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/src/enc-base64.ts -------------------------------------------------------------------------------- /src/enc-base64url.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/src/enc-base64url.ts -------------------------------------------------------------------------------- /src/enc-utf16.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/src/enc-utf16.ts -------------------------------------------------------------------------------- /src/evpkdf.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/src/evpkdf.ts -------------------------------------------------------------------------------- /src/format-hex.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/src/format-hex.ts -------------------------------------------------------------------------------- /src/hmac.ts: -------------------------------------------------------------------------------- 1 | export { 2 | HMAC, 3 | } from './core'; -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/md5.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/src/md5.ts -------------------------------------------------------------------------------- /src/mode-cfb.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/src/mode-cfb.ts -------------------------------------------------------------------------------- /src/mode-ctr-gladman.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/src/mode-ctr-gladman.ts -------------------------------------------------------------------------------- /src/mode-ctr.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/src/mode-ctr.ts -------------------------------------------------------------------------------- /src/mode-ecb.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/src/mode-ecb.ts -------------------------------------------------------------------------------- /src/mode-ofb.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/src/mode-ofb.ts -------------------------------------------------------------------------------- /src/pad-ansix923.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/src/pad-ansix923.ts -------------------------------------------------------------------------------- /src/pad-iso10126.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/src/pad-iso10126.ts -------------------------------------------------------------------------------- /src/pad-iso97971.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/src/pad-iso97971.ts -------------------------------------------------------------------------------- /src/pad-nopadding.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/src/pad-nopadding.ts -------------------------------------------------------------------------------- /src/pad-zeropadding.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/src/pad-zeropadding.ts -------------------------------------------------------------------------------- /src/pbkdf2.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/src/pbkdf2.ts -------------------------------------------------------------------------------- /src/rabbit-legacy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/src/rabbit-legacy.ts -------------------------------------------------------------------------------- /src/rabbit.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/src/rabbit.ts -------------------------------------------------------------------------------- /src/rc4.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/src/rc4.ts -------------------------------------------------------------------------------- /src/ripemd160.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/src/ripemd160.ts -------------------------------------------------------------------------------- /src/sha1.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/src/sha1.ts -------------------------------------------------------------------------------- /src/sha224.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/src/sha224.ts -------------------------------------------------------------------------------- /src/sha256.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/src/sha256.ts -------------------------------------------------------------------------------- /src/sha3.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/src/sha3.ts -------------------------------------------------------------------------------- /src/sha384.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/src/sha384.ts -------------------------------------------------------------------------------- /src/sha512.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/src/sha512.ts -------------------------------------------------------------------------------- /src/tripledes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/src/tripledes.ts -------------------------------------------------------------------------------- /src/x64-core.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/src/x64-core.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsdown.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/tsdown.config.ts -------------------------------------------------------------------------------- /vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/entronad/crypto-es/HEAD/vitest.config.ts --------------------------------------------------------------------------------