You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import crypto from 'crypto';
|
|
|
|
function sha1(content: string) {
|
|
const hash = crypto.createHash('sha1');
|
|
hash.update(content);
|
|
return hash.digest('hex');
|
|
}
|
|
|
|
global.Hydro.lib.sha1 = sha1;
|
|
export default sha1;
|