An open API service indexing awesome lists of open source software.

https://github.com/phra/sha1collisiondetection.js


https://github.com/phra/sha1collisiondetection.js

Last synced: 6 months ago
JSON representation

Awesome Lists containing this project

README

          

import sha1collision from 'sha1collision'

interface Context {
reference: number
}

const buffer = ....

const context: Context = sha1collision.init()

sha1collision.update(buffer, context)

const res = sha1collision.final(context)

console.log(res.collision)