Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120878917
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 7, 15:32
Size
281 B
Mime Type
text/x-java
Expires
Wed, Jul 9, 15:32 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27263248
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