Questions tagged [digest]
9 questions
10
votes
2 answers
How do I send a digest auth request using curl?
While searching for a guide I found this example on Wikipedia
GET /dir/index.html HTTP/1.0
Host: localhost
Authorization: Digest username="Mufasa", realm="testrealm@host.com", nonce="dcd98b7102dd2f0e8b11d0f600bfb0c093",…
mina nageh
- 552
5
votes
3 answers
Why does sha1sum act differently with the same input?
I'm trying to replicate the behavior of the sha1sum executable in some java code, however, in the process I've discovered that sha1sum appears to behave differently given the same input in two scenarios.
Assume input of '12345' without the single…
twilbrand
- 155
5
votes
1 answer
how to configure Firefox to automatically reuse the login credentials like IE
Multiple HTTP Authentication Prompts in Firefox
We are currently working on porting our application from Internet Explorer to Firefox and the application currently uses HTTP Digest Authentication. In case of Internet Explorer, the popup dialog to…
Black Eagle
- 151
1
vote
2 answers
Looking for a cross platform/portable program that spews out cryptographic hashes of a file
I am looking for a program, that should be source portable across Windows and Linux ( for eg. ANSI C, etc ) that generates cryptographic hashes like MD5, SHA, etc as well as CRC32 of a file/list of files passed to it.
I will be running this…
PoorLuzer
- 628
1
vote
1 answer
rehashing an input with openssl in mac os x versus linux
I can run a command like the following in my script on linux:
openssl dgst -sha256 \
-mac HMAC \
-macopt hexkey:xxxx
But this command fails on mac os with the error
unknown option '-mac'
I've tried sifting through man…
user868543
- 13
1
vote
1 answer
How to encrypt file using OpenSSL and AES-256 with SHA-256?
System: Linux Mint 18.3 Cinnamon 64-bit.
OpenSSL: 1.0.2g
Ordinarily, I would encrypt a file as follows:
openssl enc -aes-256-cbc -salt -in somefile -out somefile.enc
But I wonder what algorithm will be used to hash my password and if I can change…
Vlastimil Burián
- 4,376
0
votes
1 answer
Unexpected behaviour with openssl dgst
I'm working with HMAC codes.
I use two different methods and I obtain two different results :(
Use command line:
echo "text" > auxFile
openssl dgst -hmac key auxFile
Output:
HMAC-SHA256(auxFile)=…
0
votes
1 answer
Calculate KDF (just like a hash digest) such as PBKDF2 on command line? using openssl or otherwise
OpenSSL can be used to calculate a hash of a file or given input from the shell, like this:
echo -n "abc" | openssl dgst -sha256
or
openssl dgst -sha256 myfile.txt
Can I also calculate a KDF value, e.g. PBKDF2 or bcrypt or scrypt or Argon2 in a…
RocketNuts
- 1,342
0
votes
1 answer
Docker: Is there a way to resolve the tags of the layer digests?
I want to check, which FROM docker layers where used.
If you execute docker inspect you get the sha digest. But how can I resolve the digest into the docker labels? Especially, if I don't know, how the base docker images were build?
Regards
Michael Decker
- 101