0.3.4 • Published 1 year ago
kiss-crypto v0.3.4
kiss-crypto
Easily encrypt and decrypt messages. All the complexity is hidden behind the scenes.
Usage
import { encrypt, decrypt, generateEncryptionKey } from 'kiss-crypto'
const key = await generateEncryptionKey()
const plaintext = 'hello world'
const ciphertext = await encrypt({
plaintext,
key,
})
const decrypted = await decrypt({
ciphertext,
key,
})
expect(decrypted).toEqual(plaintext)
And to turn passwords into encryption keys
const password = 'password1'
const salt = await generateSalt()
const hash = await hashPassword({ password, salt })
expect(hash.length).toEqual(512)
0.3.2
1 year ago
0.3.4
1 year ago
0.3.3
1 year ago
0.3.0-beta.0
2 years ago
0.2.1
2 years ago
0.2.9-beta2
2 years ago
0.2.9-beta1
2 years ago
0.2.0
3 years ago
0.1.0
5 years ago
0.0.9
5 years ago
0.0.8
5 years ago
0.0.7
5 years ago
0.0.5
5 years ago
0.0.6
5 years ago
0.0.4
5 years ago
0.0.3
5 years ago
0.0.2
5 years ago
0.0.1
5 years ago