Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
NSMP
/
NSMP-Server
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
40413a6
NSMP-Server
/
src
/
utils
/
sha256.ts
Franek-Le
Commit
a86efc3
2 months ago
Raw
Download with hf CLI
Copy download link
History
Blame
Safe
162 Bytes
import
{ createHash }
from
"node:crypto"
;
export
function
sha256
(
input:
string
| Buffer
):
string
{
return
createHash
(
"sha256"
).
update
(input).
digest
(
"hex"
);
}