#1239 - fixing Crypt.hexify entropy

This commit is contained in:
Viktor Klang 2011-10-07 16:24:32 +02:00
parent 9c8887348f
commit 149205cb9d

View file

@ -36,7 +36,7 @@ object Crypt {
def hexify(bytes: Array[Byte]): String = {
val builder = new StringBuilder
bytes.foreach { byte builder.append(hex.charAt((byte & 0xF) >> 4)).append(hex.charAt(byte & 0xF)) }
bytes.foreach { byte builder.append(hex.charAt((byte & 0xF0) >> 4)).append(hex.charAt(byte & 0xF)) }
builder.toString
}