Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
N
node-bigstream
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bs
node-bigstream
Commits
49c5fdee
Commit
49c5fdee
authored
May 14, 2020
by
Kamron Aroonrua
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hash
parent
e123f25f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
hash.js
plugins/dt/dt-transform/fn/hash.js
+2
-1
No files found.
plugins/dt/dt-transform/fn/hash.js
View file @
49c5fdee
var
crypto
=
require
(
'crypto'
);
var
crypto
=
require
(
'crypto'
);
module
.
exports
.
sha256
=
function
(
text
)
{
module
.
exports
.
sha256
=
function
(
text
)
{
return
crypto
.
createHash
(
'sha256'
).
update
(
text
).
digest
(
'hex'
);
var
dat
=
(
typeof
text
==
'string'
)?
text
:
String
(
text
);
return
crypto
.
createHash
(
'sha256'
).
update
(
dat
).
digest
(
'hex'
);
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment