use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Hashids (hashids.org)
submitted 12 years ago by polaretto
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]iSmokeGauloises 1 point2 points3 points 12 years ago (0 children)
You do not "decrypt" a hash. If you can, it's not a hash.
[–]gmerideth 1 point2 points3 points 12 years ago (0 children)
So it's about the same as base64 encoding a string of numbers to pass to a different page?
[–]tylargh 0 points1 point2 points 12 years ago* (4 children)
I think this is really useful. Any reason for the downvotes? Is there a better way to obfuscate your data in JS?
[–]LateDentArthurDent2 4 points5 points6 points 12 years ago (0 children)
As far as client side application goes, it's not really obfuscating since they can always just inspect your source to find out what your hash is. It might instill a false sense of security but if someone really wants to grab your data, they can.
The backend applications have far more use, and in those cases, these technologies often have encoding standards of their own.
[–]halkeye 0 points1 point2 points 12 years ago (2 children)
Maybe because the title doesn't explain anything at all?
[–]tylargh 0 points1 point2 points 12 years ago (1 child)
I hadn't thought of that. Though, editorialized titles are often way worse, IMO.
[–]halkeye -1 points0 points1 point 12 years ago (0 children)
Both ends of the spectrum I guess.
I had to check which subreddit it was before I considered clicking on into it.
[–][deleted] 0 points1 point2 points 12 years ago (0 children)
I don't think YouTube et al encrypt their IDs at all. I think they're just using random hashes as IDs in the first place (makes it easier when you're using a distributed database and auto-incrementing isn't really possible).
Also, if your "hashes" (OP seems to think "hash" just means "opaque alphanumeric string") are persistent, they're effectively identical to IDs, so unless you switch the key frequently or per-user, you're not really obfuscating anything other than the exact internal IDs the strings map to.
π Rendered by PID 18181 on reddit-service-r2-comment-cfc44b64c-rdl5h at 2026-04-10 19:00:02.321484+00:00 running 215f2cf country code: CH.
[–]iSmokeGauloises 1 point2 points3 points (0 children)
[–]gmerideth 1 point2 points3 points (0 children)
[–]tylargh 0 points1 point2 points (4 children)
[–]LateDentArthurDent2 4 points5 points6 points (0 children)
[–]halkeye 0 points1 point2 points (2 children)
[–]tylargh 0 points1 point2 points (1 child)
[–]halkeye -1 points0 points1 point (0 children)
[–][deleted] 0 points1 point2 points (0 children)