Results 1 to 5 of 5
Hi folks,
Ubuntu 8.04
I have libdigest-sha1-perl installed on repo. But I can't find it running;
Code:
# which sha1/sha-1/SHA1/SHA-1
Please advise which package provides SHA1? TIA
B.R.
satimis...
- 06-03-2009 #1Linux Guru
- Join Date
- Sep 2004
- Posts
- 1,546
About SHA1
Hi folks,
Ubuntu 8.04
I have libdigest-sha1-perl installed on repo. But I can't find it running;
Please advise which package provides SHA1? TIACode:# which sha1/sha-1/SHA1/SHA-1
B.R.
satimis
- 06-03-2009 #2
Have you tried sha1sum? I believe it belongs to the coreutils package.
- 06-03-2009 #3Linux Guru
- Join Date
- Sep 2004
- Posts
- 1,546
- 06-03-2009 #4
How are you trying to do this? A bash script? Perl? PHP? sha1sum would be suitable for a bash script. Perl and PHP have their own libraries (the Perl version, you have installed) for doing this. For Perl, it looks like the appropriate syntax would be:
Code:use Digest::SHA1 qw(sha1 sha1_hex sha1_base64); $digest = sha1($data);
- 06-03-2009 #5Linux Guru
- Join Date
- Sep 2004
- Posts
- 1,546
Hi Thrillhouse,
Ubuntu 8.04, 32bit
Thanks for your advice. Please provide me more detail how to do it.
E.g.;
I use "apassword" creating an encrypted password on a MySQL database table. The encrypted password on the table is "aaabbbcccddd" for example. The user with the plain password "apassword" can't login. I need to check the SHA1 hash on the said password on terminal for manual comparison. What command line shall I use? TIA
B.R.
satimis


Reply With Quote
