Live data from Hacker News

Show HN: Hoist – Zapier for Developers (scripting done in Node.js)

hoist.io

1–10 of 12 posts

Re: Show HN: Hoist – Zapier for Developers (scripting done in Node.js)

#6
post #5

Why do you autopick user slug to be " "?!

it's not user id but actually just a random number. it's unrelated to your ID (which are actually more complex than just integers). The random number is there just to ensure we don't get collisions on slugs.

Re: Show HN: Hoist – Zapier for Developers (scripting done in Node.js)

#9
post #5

Why do you autopick user slug to be " "?!

it's not user id but actually just a random number. it's unrelated to your ID (which are actually more complex than just integers). The random number is there just to ensure we don't get collisions on slugs.

This is a pretty bad practice. You should use hashids [0] for this, instead!

[0] http://hashids.org/

Re: Show HN: Hoist – Zapier for Developers (scripting done in Node.js)

#10
post #9

Earlier quoted context omitted.

it's not user id but actually just a random number. it's unrelated to your ID (which are actually more complex than just integers). The random number is there just to ensure we don't get collisions on slugs.

This is a pretty bad practice. You should use hashids [0] for this, instead! [0] http://hashids.org/

thanks for the link, I agree it's bad practice if there's any kind of lookup/security based on the slug. We have a few other mitigations against looking up anything security wise from the slug itself. but will take it into consideration as I agree it increases guess-ability of the slugs and could leave us open in future.
Post reply on HN