0.1.0 • Published 2 years ago

@kanziw/crypto v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@kanziw/crypto

npm version license npm downloads

Install

$ yarn add @kanziw/crypto

sha256

Hash string with SHA256

import { sha256 } from '@kanziw/crypto'

// Buffer
const buf = sha256('test')

console.log(buf.toString('hex')) // 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
console.log(buf.toString('base64')) // n4bQgYhMfWWaL+qgxVrQFaO/TxsrC4Is0V1sFbDwCgg=
0.1.0

2 years ago

0.0.1

2 years ago