0.0.7 • Published 4 years ago

cryper v0.0.7

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

cryper

Getting Started

const JWT = require('jsonwebtoken')
const { Cryper } = require('cryper')
const cryper = new Cryper({
    filepath: string,
    options: {
        algorithm: 'RS256',
        expiresIn: '30m'
    }
})

cryper.setKeys() // creates new pub and pri key in a folder in your project
const pubkey = cryper.pubkey()
const token = cryper.sign(payload)
const result = JWT.verify(accessToken, cryper.pubkey())
0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

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