Skip to content

Instantly share code, notes, and snippets.

@janl
Last active December 9, 2015 21:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save janl/4583f5eb4c0d8216cc5f to your computer and use it in GitHub Desktop.
Save janl/4583f5eb4c0d8216cc5f to your computer and use it in GitHub Desktop.
@janl
Copy link
Author

janl commented Dec 9, 2015

Currently, in Node.js:

> node index.js 
UserName:  jan
Secret:  4ed13457964f05535fbb54c0e9f77a83d5513283df4f649c72757a91aa30bdde
TimeStamp:  1449689785
SessionData:  jan:566882b9
ø]Éy^�¯.À�M��7E/ø
result:  amFuOjU2Njg4MmI5Om/DgMKCTcKGwog3BEUvw7gNw7hdw4l5XsKFwq8u

WANT: amFuOjU2Njg4MkI5OkEK3-1SRseo6yNRHfk-mmk6zOxm
GOT:  amFuOjU2Njg4MmI5Om/DgMKCTcKGwog3BEUvw7gNw7hdw4l5XsKFwq8u

@janl
Copy link
Author

janl commented Dec 9, 2015

New version in the gist, now prints:

UserName:  jan
Secret:  4ed13457964f05535fbb54c0e9f77a83d5513283df4f649c72757a91aa30bdde
TimeStamp:  1449689785
SessionData:  jan:566882B9
hash:  A
ßíRFǨë#Qù>�i:Ììf
result:  amFuOjU2Njg4MkI5OkEKw5/DrVJGw4fCqMOrI1Edw7k+wpppOsOMw6xm

WANT: amFuOjU2Njg4MkI5OkEK3-1SRseo6yNRHfk-mmk6zOxm
GOT:  amFuOjU2Njg4MkI5OkEKw5/DrVJGw4fCqMOrI1Edw7k+wpppOsOMw6xm

@tcurdt
Copy link

tcurdt commented Dec 9, 2015

No wait - the node version is actually longer. doh!

@janl
Copy link
Author

janl commented Dec 9, 2015

Solved by @christophwitzko and @intutny:

WANT: amFuOjU2Njg4MkI5OkEK3-1SRseo6yNRHfk-mmk6zOxm
GOT:  amFuOjU2Njg4MkI5OkEK3-1SRseo6yNRHfk-mmk6zOxm

@tcurdt
Copy link

tcurdt commented Dec 9, 2015

Can't you just print out the intermediate results in erlang to compare?

@janl
Copy link
Author

janl commented Dec 9, 2015

@tcurdt that’s what I did in the comment on top

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment