Fedora Linux Support Community & Resources Center
  #1  
Old 5th August 2012, 01:45 AM
styptic Offline
Registered User
 
Join Date: Aug 2012
Location: Beyond belief.
Posts: 8
linuxfirefox
SHA2 256 in PERL?

I trying to learn PERL and am hacking together a program. My project is to verify someone elses password process, but in PERL.

They created some keys, they are into elliptical curve cryptography and ECDSA, so I assume they are probably using SHA2 algorithms in their password generation process. I tried to install Digest::SHA2 but it's buggy and won't install.

What other options are there to get SHA2 for PERL?
Reply With Quote
  #2  
Old 5th August 2012, 04:59 AM
ah7013's Avatar
ah7013 Offline
Registered "Cashew" User
 
Join Date: May 2010
Location: Adelaide, Australia
Age: 19
Posts: 621
linuxfirefox
Re: SHA2 256 in PERL?

Maybe Digest::SHA::PurePerl?
Quote:
Digest::SHA::PurePerl is a complete implementation of the NIST Secure Hash Standard. It gives Perl programmers a convenient way to calculate SHA-1, SHA-224, SHA-256, SHA-384, SHA-512, SHA-512/224, and SHA-512/256 message digests. The module can handle all types of input, including partial-byte data.
__________________
Running Mageia 3 (KDE 4.10) on an ASUS K55V (Core i5, 16GB RAM, 750GB HDD, Nvidia 610M)
Reply With Quote
  #3  
Old 5th August 2012, 05:17 AM
styptic Offline
Registered User
 
Join Date: Aug 2012
Location: Beyond belief.
Posts: 8
linuxfirefox
Re: SHA2 256 in PERL?

Quote:
The three SHA algorithms are structured differently and are distinguished as SHA-0, SHA-1, and SHA-2. SHA-1 is very similar to SHA-0, but corrects an error in the original SHA hash specification that led to significant weaknesses. The SHA-0 algorithm was not adopted by many applications. SHA-2 on the other hand significantly differs from the SHA-1 hash function.
Quote:
A new hash standard, SHA-3, is currently under development — an ongoing NIST hash function competition is scheduled to end with the selection of a winning function in 2012.
hxxp://en.wikipedia.org/wiki/SHA-1

Quote:
Digest::SHA::PurePerl and Digest::SHA, gives Perl programmers a convenient way to calculate SHA-1 (hashes, which are) SHA-224, SHA-256, SHA-384, SHA-512, SHA-512/224, and SHA-512/256 message digests.
Bracket info added.
hxxp://search.cpan.org/~mshelor/Digest-SHA-PurePerl-5.71/lib/Digest/SHA/PurePerl.pm
Reply With Quote
  #4  
Old 5th August 2012, 05:50 AM
ah7013's Avatar
ah7013 Offline
Registered "Cashew" User
 
Join Date: May 2010
Location: Adelaide, Australia
Age: 19
Posts: 621
linuxfirefox
Re: SHA2 256 in PERL?

I think Digest::SHA::PurePerl and Digest::SHA support both SHA-1 and SHA-2 (i.e. SHA-224, SHA-256, SHA-384 and SHA-512). Digest::SHA2 got deprecated in favor of Digest::SHA.
__________________
Running Mageia 3 (KDE 4.10) on an ASUS K55V (Core i5, 16GB RAM, 750GB HDD, Nvidia 610M)
Reply With Quote
  #5  
Old 5th August 2012, 09:10 AM
styptic Offline
Registered User
 
Join Date: Aug 2012
Location: Beyond belief.
Posts: 8
linuxfirefox
Re: SHA2 256 in PERL?

I see, it is my misunderstanding.
SHA-1 is 160-bits only while SHA-2 is everyhting from 224-bits and above.
Reply With Quote
Reply

Tags
256, perl, sha2

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[FC9] perl and required modules (perl(Test::More) Inception Using Fedora 0 15th May 2008 11:44 AM
Perl error? when testing Perl installation magnublm Using Fedora 3 21st September 2005 10:21 PM
Any way to resolve x86_64 Perl issue without yum remove perl.i386? jert Using Fedora 3 24th July 2005 07:31 PM
Problem with perl module for w3c validator to work on my local Apache+PHP+perl instal tbamt Using Fedora 0 16th December 2004 11:42 PM


Current GMT-time: 05:43 (Thursday, 20-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat