Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.119
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html_old /
iNetty /
node_modules /
sha.js /
Delete
Unzip
Name
Size
Permission
Date
Action
test
[ DIR ]
drwxr-xr-x
2022-04-21 14:30
.travis.yml
215
B
-rw-r--r--
2022-04-21 14:26
LICENSE
2.5
KB
-rw-r--r--
2022-04-21 14:26
README.md
1.73
KB
-rw-r--r--
2022-04-21 14:26
bin.js
991
B
-rw-r--r--
2022-04-21 14:26
hash.js
1.84
KB
-rw-r--r--
2022-04-21 14:26
index.js
468
B
-rw-r--r--
2022-04-21 14:26
package.json
833
B
-rw-r--r--
2022-04-21 14:26
sha.js
1.87
KB
-rw-r--r--
2022-04-21 14:26
sha1.js
1.98
KB
-rw-r--r--
2022-04-21 14:26
sha224.js
1.07
KB
-rw-r--r--
2022-04-21 14:26
sha256.js
3.2
KB
-rw-r--r--
2022-04-21 14:26
sha384.js
1.14
KB
-rw-r--r--
2022-04-21 14:26
sha512.js
7.01
KB
-rw-r--r--
2022-04-21 14:26
Save
Rename
# sha.js [](https://www.npmjs.org/package/sha.js) [](https://travis-ci.org/crypto-browserify/sha.js) [](https://david-dm.org/crypto-browserify/sha.js#info=dependencies) [](https://github.com/feross/standard) Node style `SHA` on pure JavaScript. ```js var shajs = require('sha.js') console.log(shajs('sha256').update('42').digest('hex')) // => 73475cb40a568e8da8a045ced110137e159f890ac4da883b6b17dc651b3a8049 console.log(new shajs.sha256().update('42').digest('hex')) // => 73475cb40a568e8da8a045ced110137e159f890ac4da883b6b17dc651b3a8049 var sha256stream = shajs('sha256') sha256stream.end('42') console.log(sha256stream.read().toString('hex')) // => 73475cb40a568e8da8a045ced110137e159f890ac4da883b6b17dc651b3a8049 ``` ## supported hashes `sha.js` currently implements: - SHA (SHA-0) -- **legacy, do not use in new systems** - SHA-1 -- **legacy, do not use in new systems** - SHA-224 - SHA-256 - SHA-384 - SHA-512 ## Not an actual stream Note, this doesn't actually implement a stream, but wrapping this in a stream is trivial. It does update incrementally, so you can hash things larger than RAM, as it uses a constant amount of memory (except when using base64 or utf8 encoding, see code comments). ## Acknowledgements This work is derived from Paul Johnston's [A JavaScript implementation of the Secure Hash Algorithm](http://pajhome.org.uk/crypt/md5/sha1.html). ## LICENSE [MIT](LICENSE)