ryu-js / lib /savefrom /util.js
randydev's picture
Rename lib/util.js to lib/savefrom/util.js
8ab6fd5 verified
raw
history blame
290 Bytes
import crypto from 'crypto'
const hashed = "b7944d7a59c9cb654228624880e7de59a53842c2d912b449fdf11febcf81cb21"
export function generateHash (url) {
const data = url + Date.now() + hashed
const hash = crypto.createHash('sha256')
hash.update(data)
return hash.digest('hex')
}