Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

HMAC and CRAM

 [1/1] from: andreas::bolka::gmx::net at: 25-Jul-2003 19:26


heyo! i have just spent some time to implement HMAC-MD5 and CRAM-MD5 functionality (most of the time was actually spent to _test_ and validate it :) and then i discover once more that a more extensive version of RTFM (as in 'read the f*cking manual') would have been better in the first instance. just a quick note for future case of someone searching the list archives instead of having a second look at 'checksum.
>> ? checksum
... /key -- Returns keyed HMAC value key-value -- Key to use (Type: any-string) yep :)
>> checksum/method/key "what do ya want for nothing?" 'md5 "Jefe"
== #{750C783E6AB0B503EAA86E310A5DB738} perfectly valid hmac-md5 :) and if anyone needs cram-md5: reform [ username lowercase enbase/base checksum/method/key challenge 'md5 key 16 ] for HMAC/CRAM-SHA1 use 'sha1 as argument to checksum's /method refinement. have a nice day :) -- Best regards, Andreas