PDA

View Full Version : [script] Hash selected files using SHA-1 and save to verify.sha1


bigstar
03-07-2017, 03:48 PM
# require the local browser, abort script if remote is selected
/require local

# display busybox during operation and allow the user to cancel operation
/busybox

# delete any existing verify.sha1 file
# you could remove this to append to an existing file but that would include duplicates if the same file is hashed
/dele "%pverify.sha1"

# This will create a SHA1 file of all selected files
# using the standard SHA1 hash file format
# <sha1> <filename>
/writeln "%pverify.sha1" $sha1("%p%f") %f