Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
md5crypt in portage ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
magowiz
Veteran
Veteran


Joined: 17 Feb 2005
Posts: 1029
Location: Italy/Milan/Bresso

PostPosted: Fri Dec 04, 2009 8:16 pm    Post subject: md5crypt in portage ? Reply with quote

Does anyone knows if there is a md5crypt command that given a password it generates a md5 encrypted version.
I also want a program that given a password and the hash previously calculated it verifies if the password is correct.

Are there analogue tools for sha (in its variants) and other encryption methods ?
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Fri Dec 04, 2009 9:00 pm    Post subject: Reply with quote

Have you checked out the command md5sum? It should be part of the sys-apps/coreutils, which is a core gentoo package.

There appear to be a handful of ebuild in portage related to SHA, but I'm not as familiar with them, so I'm not sure what to recommend in this case.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9895
Location: almost Mile High in the USA

PostPosted: Fri Dec 04, 2009 9:02 pm    Post subject: Reply with quote

For my system authentication perl scripts, I use dev-perl/Crypt-PasswdMD5 to handle md5 encryption of passwords. The hashes are then compared with simple equality operators with what's read from /etc/shadow...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
magowiz
Veteran
Veteran


Joined: 17 Feb 2005
Posts: 1029
Location: Italy/Milan/Bresso

PostPosted: Sat Dec 05, 2009 11:28 am    Post subject: Reply with quote

mikegpitt wrote:
Have you checked out the command md5sum? It should be part of the sys-apps/coreutils, which is a core gentoo package.


md5sum only performs an hash, it is different from md5-crypt algorithm
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum