Questions tagged [sha1sum]
12 questions
4
votes
2 answers
How can I get a file checksum in Deno?
Just starting with Deno, I am trying to figure out how to calculate a binary file checksum. It seems to me that the problem is not with the methods provided by the hash module of the standard library, but with the file streaming method and/or the…

mre
- 95
- 1
- 7
2
votes
1 answer
Execute UNIX shell command with TCL version 8.5 commands
I'm trying to calculate the SHA1 of different TCL scripts in a folder for version checking (my TCL version is 8.5). I want to do this from within one of the TCL scripts, and print this info into a separate file. I thought I could do something like…

Simen
- 23
- 3
2
votes
2 answers
How to compare sha1sum sum to file
Say I have
shasum=$(sha1sum )
how can I compare that value to a sha1sum from another file:
if [[ $shasum == `cat ` ]]; then
echo "values are the same"
fi
that can't be right, anybody know?
user5047085
1
vote
1 answer
python 3.9 - unable to get correct sha1 hash for multiple files in loop
By referring the code, given in solution in below link, not getting the correct SHA1 hash for 2nd onwards files in loop. Why saying incorrect because
Using the code given below: -
CORRECT -> When trying to generate the SHA1 hash for same file…

bsethi24
- 45
- 1
- 8
1
vote
1 answer
What are sha1sum "exit codes"?
1) Is there any documentation/URL about sha1sum "exit codes"? I am just want to be sure, that "exit code 1" always means that there is a "FAILED result".
$ sha1sum dummy* > SHA1SUM
$ sha1sum -c SHA1SUM
dummy1: OK
dummy2: OK
dummy3: OK
$ echo…
user13509658
1
vote
2 answers
Linux bash: Compare hash strings without setting variables
I want a simple bash command to compare two hash values that outputs whether they are the same. Here's what I've tried:
md5sum file1 | awk '{print $1}' # outputs hash value without filename
md5sum file1 > md5sum file2 # no output even though…

Karl Baker
- 903
- 12
- 27
1
vote
1 answer
How does git know if a tarball has changed?
If a tarball (a .tgz file) is tracked in a Git repo, how does Git know if it has changed between commits?
I am looking to copy that behavior/functionality, so I can determine if there are changes between two different tarballs.
Again, what am I…

Alexander Mills
- 90,741
- 139
- 482
- 817
0
votes
0 answers
Problems in second blocks message digest in self-learning SHA-1 algorithm
Output
I am new in learning C programming. Now, I am trying to do SHA-1 for university project. I think this coding by myself. I am trying to do the message digest from the file above 55characters, which means 2 blocks is needed. The first block…
0
votes
2 answers
Bash / Shell script to modify files in folders and sub folders but NOT to modify folder names
So I have a script that goes through files in a folder and will rename them to odd and even numbers.
My Issue is I have allot of sub folders and it renames them to when I don't want to modify folder names but I do want to modify files inside the sub…

C0nw0nk
- 870
- 2
- 13
- 29
0
votes
0 answers
create fileinputstream for the nested jar files i.e jar inside jar
there is a nested jar in the jar, like this :
jar:file:/home/inct-venkates/work/workspace/WebGoat/webgoat-server/target/webgoat-server-v8.0.0-SNAPSHOT.jar!/BOOT-INF/lib/slf4j-api-1.7.25.jar!/
finally what I'm looking for is I need to create md5,…
0
votes
1 answer
Openssl fipsld usage in static library
I have build a FIPS capable openssl library.
Openssl Version 1.0.2t and FIPS object module 2.0.16.
I was reading the user guide for FIPS object module which told that the last step in building a program with FIPS capable openssl was to use fipsld…

Dinesh Gowda
- 1,044
- 3
- 13
- 29
0
votes
1 answer
How to use sha1sum to verify contents of a tarball
When I run this command:
tar -xOzf oresoftware-npp-0.0.1002.tgz | sort | sha1sum
I get this:
fadc89dd523fd54299aed689a90f73243c5336b8 -
does anyone know what the trailing dash - is supposed to represent?

Alexander Mills
- 90,741
- 139
- 482
- 817