Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/inventory.picotech.app/public_html/node_modules/sha.js/ drwxr-xr-x | |
| Viewing file: Select action/file-type: #! /usr/bin/env node
var createHash = require('./browserify')
var argv = process.argv.slice(2)
function pipe (algorithm, s) {
var start = Date.now()
var hash = createHash(algorithm || 'sha1')
s.on('data', function (data) {
hash.update(data)
})
s.on('end', function () {
if (process.env.DEBUG) {
return console.log(hash.digest('hex'), Date.now() - start)
}
console.log(hash.digest('hex'))
})
}
function usage () {
console.error('sha.js [algorithm=sha1] [filename] # hash filename with algorithm')
console.error('input | sha.js [algorithm=sha1] # hash stdin with algorithm')
console.error('sha.js --help # display this message')
}
if (!process.stdin.isTTY) {
pipe(argv[0], process.stdin)
} else if (argv.length) {
if (/--help|-h/.test(argv[0])) {
usage()
} else {
var filename = argv.pop()
var algorithm = argv.pop()
pipe(algorithm, require('fs').createReadStream(filename))
}
} else {
usage()
}
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0031 ]-- |