bxor

Dan Melomedman dan-erlang@REDACTED
Thu Feb 20 21:44:16 CET 2003


Martin Bjorklund wrote:
> Dan Melomedman <dan-erlang@REDACTED> wrote:
> > Thanks all for great examples. I am trying to write a RADIUS client. It
> > needs to XOR an MD5 digest (128 bit binary) with an arbitrary long user 
> > password. I'll try a few things, and see what works better. Thanks.
> 
> Here's another example, which may be of use to you :)

This one hits the spot! Thanks! Erlang is an amazing language.

Note: I am new to Erlang. Shouldn't there be a more concise way to define
xor16? What if B could be of arbitrary length in some other protocol?



More information about the erlang-questions mailing list