View previous topic :: View next topic |
Author |
Message |
magowiz Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/212393594245559c4a9b495.jpg)
Joined: 17 Feb 2005 Posts: 1029 Location: Italy/Milan/Bresso
|
Posted: Fri Dec 04, 2009 8:16 pm Post subject: md5crypt in portage ? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
mikegpitt Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/320581971410bd37710af6.jpg)
Joined: 22 May 2004 Posts: 3224
|
Posted: Fri Dec 04, 2009 9:00 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
eccerr0r Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
Joined: 01 Jul 2004 Posts: 9895 Location: almost Mile High in the USA
|
Posted: Fri Dec 04, 2009 9:02 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
magowiz Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/212393594245559c4a9b495.jpg)
Joined: 17 Feb 2005 Posts: 1029 Location: Italy/Milan/Bresso
|
Posted: Sat Dec 05, 2009 11:28 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|