ciderpunx
Re:Ask HN: What symbols would you like to add to the standard keyboard?
on Wednesday March 30, 2022 @04:03PM (#30860119)
λ
Ask HN: What data format does this look like?
Trying to figure out my local bus company's ticketing system.Here's one of the fields on it, anyone know what it might be?P08pxI+q7abfvq3LIwspLRy/EWQ=
Re:Amsterdam Airport Launches API Platform
on Wednesday March 22, 2017 @03:52AM (#13929163)
I find the use Aircrafts as the plural of Aircraft kind of sweet https://developer.schiphol.nl/apis/flight-api/aircrafts
I spy with my little algorithim: Bruce Schneier on privacy/surveillance
Micropuzzles and generating Pythagorean triples
Digits in page numbers and thoughts on optimization
How to make an email signature that makes you seem like a dick
Why sum and product types?
Seven More Languages: Julia Day Three
Is GCHQ password advice dodgy?
How we pronounce WWW in English: a brief and unscientific survey
Re:Project Euler has been hacked
on Sunday August 02, 2015 @05:31AM (#9990234)
Man, I'd just solved one of the problems. Hope I get a chance to find out how I did.
Cameron’s turd in the encryption punchbowl
Re:The abolition of work
on Tuesday July 07, 2015 @04:39AM (#9844242)
Those aren't the only sorts of motivation folks might have to work.
Plenty of people working in sewage, collecting rubbish and so on do it because they think it makes an important contribution to society, same as people in the army. I find it hard to disagree that their contribution is more important than software development in some ways -- I'd rather have streets clear of rotting rubbish and rats than a new version of office.
Seven More Languages: Elixir Day Two
Seven More Languages: Elixir Day One
Font of the month: Sans Bullshit Sans – uses ligatures to replace bullshit words
Why is Math.max() less than Math.min()?
Seven More Languages: Elm Day Two
Video: Guy Steele’s Growing a Language Talk
Seven More Languages: Elm Day One
Seven More Languages: Factor Day Three
Video: dependently typed programming in Idris tech talk
Seven More Languages: Factor Day One
Why breaking encryption to stop terror is a monumentally shit idea
Re:The God Login
on Friday January 09, 2015 @01:38PM (#8863585)
Sure, I think that this means that the try the normal case and the flipped case.
> ie. compare both hash(enteredPassword) and hash(invertCase(enteredPassword)) to the hash in the database and see if either match
Here's an example in bash:
$ echo PasSwoRd | tr 'A-Za-z' 'a-zA-Z'
pASsWOrD
In the database store one variant $ echo PasSwoRd | tr 'A-Za-z' 'a-zA-Z' | sha256sum > db
Then you can test both on input $ echo PasSwoRd | sha256sum > sum1
$ echo PasSwoRd | tr 'A-Za-z' 'a-zA-Z' | sha256sum > sum2
$ diff -q db sum1
Files db and sum1 differ # i.e. LOGIN FAILS
$ diff -q db sum2
$ # i.e. LOGIN SUCCEEDS
The problem with the caps lock behaviour on Macs is harder. You definitely don't want to force to uppercase!