{"repo":"Caligatio/jsSHA","free":true,"listed":false,"github":"https://github.com/Caligatio/jsSHA","clone":"git clone https://github.com/Caligatio/jsSHA.git","description":"A JavaScript/TypeScript implementation of the complete Secure Hash Standard (SHA) family (SHA-1, SHA-224/256/384/512, SHA3-224/256/384/512, SHAKE128/256, cSHAKE128/256, and KMAC128/256) with HMAC.","language":"TypeScript","stars":2265,"topics":["sha","sha-1","sha-2","sha-3","sha-224","sha-256","sha-384","sha-512","sha3-224","sha3-256"],"license":"BSD-3-Clause","category":"dev-tools","readme_excerpt":"jsSHA A pure TypeScript/JavaScript streaming implementation of the complete Secure Hash Standard (SHA) family (SHA-1, SHA-224/256/384/512, SHA3-224/256/384/512, SHAKE128/256, cSHAKE128/256, and KMAC128/256) with HMAC. Usage More complete documentation can be found on the jsSHA Wiki but below are common use-cases. Installation Browser Include the desired JavaScript file (sha.js, sha1.js, sha256.js, sha512.js, or sha3.js) in your header: Node.js jsSHA is available through NPM and be installed by simply doing To use the module, first require it using: Deno jsSHA simply works with Deno via the npm: import specifier: TypeScript types are resolved automatically from the package. Hashing Instantiate a new jsSHA object with the desired hash variant, input format, and options as parameters. The hash variant can be one of SHA-1, SHA-224, SHA3-224, SHA-256, SHA3-256, SHA-384, SHA3-384, SHA-512, SHA3-512, SHAKE128, or SHAKE256. The input format can be one of HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY. You can then stream in input using the update object function, calling it multiple times if needed. Finally, simply call getHash with the output type as a parameter (B64, HEX, BYTES, ARRAYBUFFER, or UINT8ARRAY). Example to calculate the SHA-512 of \"This is a test\": The constructor takes a hashmap as a optional third argument with defaults {\"encoding\" : \"UTF8\", \"numRounds\" : 1} . numRounds controls the number of hashing iterations/rounds performed and encoding specifies the encoding u","default_branch":null,"files":null,"tree":[],"storefront":"/r/Caligatio","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Caligatio/jsSHA/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}