├── .eslintrc.json ├── .github └── workflows │ ├── publish.yml │ └── test.yml ├── .gitignore ├── CHANGELOG.md ├── LICENSE.md ├── README.md ├── index.d.ts ├── package.json ├── rollup.config.mjs ├── src ├── converters │ ├── base64_url.ts │ └── index.ts ├── crypto.ts ├── index.ts ├── keys │ ├── asymmetric.ts │ ├── index.ts │ ├── key.ts │ └── symmetric.ts ├── mechs │ ├── aes │ │ ├── aes_cbc.ts │ │ ├── aes_cmac.ts │ │ ├── aes_ctr.ts │ │ ├── aes_ecb.ts │ │ ├── aes_gcm.ts │ │ ├── aes_kw.ts │ │ ├── crypto.ts │ │ ├── index.ts │ │ └── key.ts │ ├── des │ │ ├── crypto.ts │ │ ├── des_cbc.ts │ │ ├── des_ede3_cbc.ts │ │ ├── index.ts │ │ └── key.ts │ ├── ec │ │ ├── crypto.ts │ │ ├── ec_dh.ts │ │ ├── ec_dsa.ts │ │ ├── helper.ts │ │ ├── index.ts │ │ ├── private_key.ts │ │ └── public_key.ts │ ├── ed │ │ ├── crypto.ts │ │ ├── ecdh_es.ts │ │ ├── eddsa.ts │ │ ├── helper.ts │ │ ├── index.ts │ │ ├── private_key.ts │ │ └── public_key.ts │ ├── ed25519 │ │ ├── crypto.ts │ │ ├── crypto_key.ts │ │ ├── ed25519.ts │ │ ├── index.ts │ │ ├── private_key.ts │ │ ├── public_key.ts │ │ └── x25519.ts │ ├── hkdf │ │ ├── hkdf.ts │ │ ├── index.ts │ │ └── key.ts │ ├── hmac │ │ ├── hmac.ts │ │ ├── index.ts │ │ └── key.ts │ ├── index.ts │ ├── pbkdf │ │ ├── index.ts │ │ ├── key.ts │ │ └── pbkdf2.ts │ ├── rsa │ │ ├── crypto.ts │ │ ├── helper.ts │ │ ├── index.ts │ │ ├── private_key.ts │ │ ├── public_key.ts │ │ ├── rsa_es.ts │ │ ├── rsa_oaep.ts │ │ ├── rsa_pss.ts │ │ └── rsa_ssa.ts │ ├── sha │ │ ├── crypto.ts │ │ ├── index.ts │ │ ├── sha3_256.ts │ │ ├── sha3_384.ts │ │ ├── sha3_512.ts │ │ ├── sha_1.ts │ │ ├── sha_256.ts │ │ ├── sha_384.ts │ │ └── sha_512.ts │ ├── shake │ │ ├── crypto.ts │ │ ├── index.ts │ │ ├── shake128.ts │ │ └── shake256.ts │ └── storage.ts └── subtle.ts ├── test └── crypto.ts ├── tsconfig.json └── yarn.lock /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/.github/workflows/publish.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/.gitignore -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/README.md -------------------------------------------------------------------------------- /index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/index.d.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/package.json -------------------------------------------------------------------------------- /rollup.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/rollup.config.mjs -------------------------------------------------------------------------------- /src/converters/base64_url.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/converters/base64_url.ts -------------------------------------------------------------------------------- /src/converters/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./base64_url"; 2 | -------------------------------------------------------------------------------- /src/crypto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/crypto.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/keys/asymmetric.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/keys/asymmetric.ts -------------------------------------------------------------------------------- /src/keys/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/keys/index.ts -------------------------------------------------------------------------------- /src/keys/key.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/keys/key.ts -------------------------------------------------------------------------------- /src/keys/symmetric.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/keys/symmetric.ts -------------------------------------------------------------------------------- /src/mechs/aes/aes_cbc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/aes/aes_cbc.ts -------------------------------------------------------------------------------- /src/mechs/aes/aes_cmac.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/aes/aes_cmac.ts -------------------------------------------------------------------------------- /src/mechs/aes/aes_ctr.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/aes/aes_ctr.ts -------------------------------------------------------------------------------- /src/mechs/aes/aes_ecb.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/aes/aes_ecb.ts -------------------------------------------------------------------------------- /src/mechs/aes/aes_gcm.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/aes/aes_gcm.ts -------------------------------------------------------------------------------- /src/mechs/aes/aes_kw.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/aes/aes_kw.ts -------------------------------------------------------------------------------- /src/mechs/aes/crypto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/aes/crypto.ts -------------------------------------------------------------------------------- /src/mechs/aes/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/aes/index.ts -------------------------------------------------------------------------------- /src/mechs/aes/key.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/aes/key.ts -------------------------------------------------------------------------------- /src/mechs/des/crypto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/des/crypto.ts -------------------------------------------------------------------------------- /src/mechs/des/des_cbc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/des/des_cbc.ts -------------------------------------------------------------------------------- /src/mechs/des/des_ede3_cbc.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/des/des_ede3_cbc.ts -------------------------------------------------------------------------------- /src/mechs/des/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/des/index.ts -------------------------------------------------------------------------------- /src/mechs/des/key.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/des/key.ts -------------------------------------------------------------------------------- /src/mechs/ec/crypto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/ec/crypto.ts -------------------------------------------------------------------------------- /src/mechs/ec/ec_dh.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/ec/ec_dh.ts -------------------------------------------------------------------------------- /src/mechs/ec/ec_dsa.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/ec/ec_dsa.ts -------------------------------------------------------------------------------- /src/mechs/ec/helper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/ec/helper.ts -------------------------------------------------------------------------------- /src/mechs/ec/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/ec/index.ts -------------------------------------------------------------------------------- /src/mechs/ec/private_key.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/ec/private_key.ts -------------------------------------------------------------------------------- /src/mechs/ec/public_key.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/ec/public_key.ts -------------------------------------------------------------------------------- /src/mechs/ed/crypto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/ed/crypto.ts -------------------------------------------------------------------------------- /src/mechs/ed/ecdh_es.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/ed/ecdh_es.ts -------------------------------------------------------------------------------- /src/mechs/ed/eddsa.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/ed/eddsa.ts -------------------------------------------------------------------------------- /src/mechs/ed/helper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/ed/helper.ts -------------------------------------------------------------------------------- /src/mechs/ed/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/ed/index.ts -------------------------------------------------------------------------------- /src/mechs/ed/private_key.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/ed/private_key.ts -------------------------------------------------------------------------------- /src/mechs/ed/public_key.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/ed/public_key.ts -------------------------------------------------------------------------------- /src/mechs/ed25519/crypto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/ed25519/crypto.ts -------------------------------------------------------------------------------- /src/mechs/ed25519/crypto_key.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/ed25519/crypto_key.ts -------------------------------------------------------------------------------- /src/mechs/ed25519/ed25519.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/ed25519/ed25519.ts -------------------------------------------------------------------------------- /src/mechs/ed25519/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/ed25519/index.ts -------------------------------------------------------------------------------- /src/mechs/ed25519/private_key.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/ed25519/private_key.ts -------------------------------------------------------------------------------- /src/mechs/ed25519/public_key.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/ed25519/public_key.ts -------------------------------------------------------------------------------- /src/mechs/ed25519/x25519.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/ed25519/x25519.ts -------------------------------------------------------------------------------- /src/mechs/hkdf/hkdf.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/hkdf/hkdf.ts -------------------------------------------------------------------------------- /src/mechs/hkdf/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./hkdf"; 2 | -------------------------------------------------------------------------------- /src/mechs/hkdf/key.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/hkdf/key.ts -------------------------------------------------------------------------------- /src/mechs/hmac/hmac.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/hmac/hmac.ts -------------------------------------------------------------------------------- /src/mechs/hmac/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./hmac"; 2 | -------------------------------------------------------------------------------- /src/mechs/hmac/key.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/hmac/key.ts -------------------------------------------------------------------------------- /src/mechs/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/index.ts -------------------------------------------------------------------------------- /src/mechs/pbkdf/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./pbkdf2"; 2 | -------------------------------------------------------------------------------- /src/mechs/pbkdf/key.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/pbkdf/key.ts -------------------------------------------------------------------------------- /src/mechs/pbkdf/pbkdf2.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/pbkdf/pbkdf2.ts -------------------------------------------------------------------------------- /src/mechs/rsa/crypto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/rsa/crypto.ts -------------------------------------------------------------------------------- /src/mechs/rsa/helper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/rsa/helper.ts -------------------------------------------------------------------------------- /src/mechs/rsa/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/rsa/index.ts -------------------------------------------------------------------------------- /src/mechs/rsa/private_key.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/rsa/private_key.ts -------------------------------------------------------------------------------- /src/mechs/rsa/public_key.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/rsa/public_key.ts -------------------------------------------------------------------------------- /src/mechs/rsa/rsa_es.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/rsa/rsa_es.ts -------------------------------------------------------------------------------- /src/mechs/rsa/rsa_oaep.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/rsa/rsa_oaep.ts -------------------------------------------------------------------------------- /src/mechs/rsa/rsa_pss.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/rsa/rsa_pss.ts -------------------------------------------------------------------------------- /src/mechs/rsa/rsa_ssa.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/rsa/rsa_ssa.ts -------------------------------------------------------------------------------- /src/mechs/sha/crypto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/sha/crypto.ts -------------------------------------------------------------------------------- /src/mechs/sha/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/sha/index.ts -------------------------------------------------------------------------------- /src/mechs/sha/sha3_256.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/sha/sha3_256.ts -------------------------------------------------------------------------------- /src/mechs/sha/sha3_384.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/sha/sha3_384.ts -------------------------------------------------------------------------------- /src/mechs/sha/sha3_512.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/sha/sha3_512.ts -------------------------------------------------------------------------------- /src/mechs/sha/sha_1.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/sha/sha_1.ts -------------------------------------------------------------------------------- /src/mechs/sha/sha_256.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/sha/sha_256.ts -------------------------------------------------------------------------------- /src/mechs/sha/sha_384.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/sha/sha_384.ts -------------------------------------------------------------------------------- /src/mechs/sha/sha_512.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/sha/sha_512.ts -------------------------------------------------------------------------------- /src/mechs/shake/crypto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/shake/crypto.ts -------------------------------------------------------------------------------- /src/mechs/shake/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/shake/index.ts -------------------------------------------------------------------------------- /src/mechs/shake/shake128.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/shake/shake128.ts -------------------------------------------------------------------------------- /src/mechs/shake/shake256.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/shake/shake256.ts -------------------------------------------------------------------------------- /src/mechs/storage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/mechs/storage.ts -------------------------------------------------------------------------------- /src/subtle.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/src/subtle.ts -------------------------------------------------------------------------------- /test/crypto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/test/crypto.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PeculiarVentures/webcrypto/HEAD/yarn.lock --------------------------------------------------------------------------------