Skip to content

Commit

Permalink
Merge pull request #6 from charl/master
Browse files Browse the repository at this point in the history
Fixed password decoding that is longer than 16 charcters
  • Loading branch information
pjdavis committed Dec 22, 2011
2 parents a3fdcf0 + a77278f commit dd2d2df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/radiustar/packet.rb
Expand Up @@ -168,7 +168,7 @@ def decode(value, secret)
decoded_value = ""
lastround = @authenticator
0.step(value.length-1, 16) do |i|
decoded_value = xor_str(value[i, 16], Digest::MD5.digest(secret + lastround))
decoded_value += xor_str(value[i, 16], Digest::MD5.digest(secret + lastround))
lastround = value[i, 16]
end

Expand Down

0 comments on commit dd2d2df

Please sign in to comment.