Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
njohnson41
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
njohnson41
12y ago
Using HMAC'd tokens to authenticate requests is pretty common in the form of cookie-based session variables (at least in most non-PHP web frameworks, e.g. Flask). This is really the same technique, except for email requests, where the
32.
▲
by
njohnson41
12y ago
Hopefully mandatory computer science education doesn't fall into the same trap as mathematics, where the "introductory" version taught in grade school becomes so simplified and rote that it loses all of the qualities that mak
33.
▲
by
njohnson41
12y ago
This is definitely a nice reference implementation of crypto algorithms in pure Lua, but please, please do not use it for production encryption. Anything written in an interpreted (or worse, JIT-ted) language will be almost definitely vulne
34.
▲
by
njohnson41
12y ago
The issue is with scoping, not the closure mechanism. Python will by default shadow variables in an enclosing scope instead of overwriting them during assignment, to prevent accidental introduction of global state. You can use the "glo