Skip to content

Commit

Permalink
Fix #38: make MD5 credentials nul-terminated
Browse files Browse the repository at this point in the history
  • Loading branch information
povder committed Nov 11, 2016
1 parent b8869e2 commit a7876c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ object PasswordMessage {
val hex2 = bytesToHex(digest2)

val md5String = "md5" + hex2
val credentials = md5String.getBytes("US-ASCII")
val credentials = Array.concat(md5String.getBytes("US-ASCII"), Array(0.toByte)) //TODO optimize

PasswordMessage(credentials)
}
Expand Down

0 comments on commit a7876c1

Please sign in to comment.