0.3.4 • Published 11 months ago

kiss-crypto v0.3.4

Weekly downloads
59
License
MIT
Repository
-
Last release
11 months ago

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

11 months ago

0.3.4

11 months ago

0.3.3

11 months ago

0.3.0-beta.0

1 year 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

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.5

4 years ago

0.0.6

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago