3.1.1 ā€¢ Published 17 days ago

@kazura/web-crypto v3.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
17 days ago

npm size license

@kazura/web-crypto

web crypto

Install

pnpm i @kazura/web-crypto

Usage

import { Base64, md5, Rsa1024, Aes128Ecb } from '@kazura/web-crypto'

// md5
md5('plain text')

// base64
const base64Ciphertext = Base64.stringify('plain text')
Base64.parse(base64Ciphertext)

// aes-128-ecb
const aesCiphertext = Aes128Ecb.encrypt('plain text', 'secret key')
Aes128Ecb.decrypt(aesCiphertext, 'secret key')

// rsa-1024
const certificate = Rsa1024.createCertificate()
const rsaCiphertext = Rsa1024.encrypt('plain text', certificate.pubkey)
Rsa1024.decrypt(rsaCiphertext, certificate.privkey)

Author

šŸ‘¤ kazura233

šŸ¤ Contributing

Contributions, issues and feature requests are welcome!Feel free to check issues page.

Show your support

Give a ā­ļø if this project helped you!

3.1.1

17 days ago

3.1.0

17 days ago

3.0.2

5 months ago

3.0.1

6 months ago

3.0.0

6 months ago

2.1.1

7 months ago

2.1.0

8 months ago

2.0.1

8 months ago

2.0.0

8 months ago

1.0.0

1 year ago

0.0.1-alpha.4

3 years ago

0.0.1-alpha.3

3 years ago

0.0.1-alpha.2

3 years ago

0.0.1-alpha.1

3 years ago