0.3.0-beta.0 • Published 5 months ago

kiss-crypto v0.3.0-beta.0

Weekly downloads
59
License
MIT
Repository
-
Last release
5 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.0-beta.0

5 months ago

0.2.1

8 months ago

0.2.9-beta2

10 months ago

0.2.9-beta1

10 months ago

0.2.0

2 years ago

0.1.0

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.5

3 years ago

0.0.6

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago