Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F121847712
md5.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Jul 14, 09:28
Size
281 B
Mime Type
text/x-java
Expires
Wed, Jul 16, 09:28 (2 d)
Engine
blob
Format
Raw Data
Handle
27400859
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
md5.js
View Options
import
crypto
from
'crypto'
;
function
md5
(
bytes
)
{
if
(
Array
.
isArray
(
bytes
))
{
bytes
=
Buffer
.
from
(
bytes
);
}
else
if
(
typeof
bytes
===
'string'
)
{
bytes
=
Buffer
.
from
(
bytes
,
'utf8'
);
}
return
crypto
.
createHash
(
'md5'
).
update
(
bytes
).
digest
();
}
export
default
md5
;
Event Timeline
Log In to Comment