Implemented SHA256 hash helper function
parent
e49a652afa
commit
a5e750eae7
|
@ -0,0 +1,10 @@
|
|||
const crypto = require('crypto');
|
||||
|
||||
function sha256(input: string): string {
|
||||
return crypto
|
||||
.createHash('sha256')
|
||||
.update(input)
|
||||
.digest("hex");
|
||||
}
|
||||
|
||||
export default sha256;
|
Loading…
Reference in New Issue