Skip to content
This repository has been archived by the owner on Feb 8, 2019. It is now read-only.

Conversation

fanf
Copy link
Member

@fanf fanf commented Apr 29, 2014

Add the missing UnixCrypt based on DES and removed some dead code.

override def hash(input:Array[Byte]) : String = Md5Crypt.md5Crypt(input)
override val prefix = "linux-shadow-md5"
}

object LinuxShadowSHA256 extends HashAlgoConstraint {
private[this] val md = MessageDigest.getInstance("SHA-256")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i checked on apache commons, and indeed this is not necessary

ncharles added a commit that referenced this pull request Apr 29, 2014
…word_hash_kind

Fixes #4785: add unix crypt DES password hash kind
@ncharles ncharles merged commit 254e365 into Normation:branches/rudder/2.10 Apr 29, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants