Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101529845
Hash.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
Tue, Feb 11, 07:46
Size
925 B
Mime Type
text/x-c++
Expires
Thu, Feb 13, 07:46 (2 d)
Engine
blob
Format
Raw Data
Handle
24164624
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
Hash.js
View Options
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict"
;
class
Hash
{
/* istanbul ignore next */
/**
* Update hash {@link https://nodejs.org/api/crypto.html#crypto_hash_update_data_inputencoding}
* @abstract
* @param {string|Buffer} data data
* @param {string=} inputEncoding data encoding
* @returns {this} updated hash
*/
update
(
data
,
inputEncoding
)
{
const
AbstractMethodError
=
require
(
"../AbstractMethodError"
);
throw
new
AbstractMethodError
();
}
/* istanbul ignore next */
/**
* Calculates the digest {@link https://nodejs.org/api/crypto.html#crypto_hash_digest_encoding}
* @abstract
* @param {string=} encoding encoding of the return value
* @returns {string|Buffer} digest
*/
digest
(
encoding
)
{
const
AbstractMethodError
=
require
(
"../AbstractMethodError"
);
throw
new
AbstractMethodError
();
}
}
module
.
exports
=
Hash
;
Event Timeline
Log In to Comment