Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@janl

This comment has been minimized.

Copy link
Owner 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

This comment has been minimized.

Copy link
Owner 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

This comment has been minimized.

Copy link

tcurdt commented Dec 9, 2015

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

@janl

This comment has been minimized.

Copy link
Owner Author

janl commented Dec 9, 2015

Solved by @christophwitzko and @intutny:

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

@tcurdt

This comment has been minimized.

Copy link

tcurdt commented Dec 9, 2015

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

@janl

This comment has been minimized.

Copy link
Owner 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
You can’t perform that action at this time.