r/shittyprogramming • u/Ccoolboy • May 31 '16
I think I developed the BEST encryption method known to man...
Okay, so obviously, storing passwords in plaintext is probably one of the most flawed methods out there for storing passwords. You could use a mature hashing library tested extensively, but with a quantum computer, you could crack any hash in a matter of nanoseconds. It could be so fast, it could even be negative nanoseconds You know who probably has a quantum computer? Corporations.
Instead of storing your passwords in plaintext, store your passwords in plaintext but name your column hashed_password. When a hacker comes in, they will realize your passwords are encrypted because of the hashed_password column. They will try every single password combination except for the actual password because they think it's encrypted! You couldn't even crack it with a quantum computer.
I would recommend everyone start implementing this into your networks ASAP before the corporations get to you.
13
May 31 '16
Those goddamned corporations. Anything to stick it to them!
10
u/Ccoolboy May 31 '16
I believe this is the only way we can combat the dangers of quantum computering towards encryption.
5
u/Jdban May 31 '16
I've run into this when reverse engineering some actual production databases. Saw a field called encryptedpass that contained clearly default passwords like "pass"
3
52
u/UnspeakableEvil May 31 '16
Excellent idea, and webscale too - think of all the CPU cycles you'll be saving by not having to go through expensive salting and hashing processes. It's also a lot more secure - with your approach there's zero chance of a hash collision, making your way infinitely better than any hashing solution.
It's also worth noting that "a mature hashing library tested extensively" just means that those without quantum computers have already had a long time to figure out how to break the encryption, making the whole exercise worthless.
33
u/boynedmaster May 31 '16
Make your database password "nicetrycorporations", so if the corporations read your code, they'll think that you were one step ahead of them!
37
u/RenaKunisaki May 31 '16
I use "error" as my password, so that when a hacker fetches it from a compromised database, they'll think they failed.
27
u/bogas04 May 31 '16
"undefined" would be even better, seeing the growing popularity of JavaScript developers in corporations
17
u/b-rat May 31 '16
I use "null" for the same reason
0
May 31 '16
[deleted]
7
u/moartoast Jun 01 '16
Mine's ; DROP TABLE "passwords";--
4
u/jfb1337 Jun 02 '16
Make sure it's ; DROP TABLE "corporation's passwords";--, that way if the corporation tries to hack it they'll accidentally delete their own passwords instead.
20
u/hukiki May 31 '16
Shit, negative nanoseconds. Does this mean my myspace account from 2005 can get hacked by quantum computers ?
15
u/drachenstern May 31 '16
It already was!! gasp
3
u/ApproachingCorrect May 31 '16
All the hacked Facebooks, my god! They really were hacked by malevolent corporations from the future who posted lewd images and rude posts to change the course of humanity!
7
u/rambocommando May 31 '16
I believe this is superior to the very similar encryption method ROT-26 , which is what most people should have be using now because it's way better than ROT-1 through 25
4
u/Chance_Le_Destroyer May 31 '16
But what about ROT-52?
6
u/rambocommando May 31 '16
I don't think servers have the necessary hardware to handle that level of encryption, unless you're the NSA
4
u/the8thbit May 31 '16
A better encryption algorithm is to make your key the contents of the file you want access to. This also has the added benefit of 100% compression.
2
Jun 01 '16 edited Sep 20 '25
arrest birds crush theory yoke groovy seemly absorbed pet bike
This post was mass deleted and anonymized with Redact
2
2
u/taeratrin Jun 01 '16
Just make your password 'null'. Then they'll think their decryption program is broken.
1
103
u/SinisterMinister42 May 31 '16
Too late to the party. This is already a thing, which means the corporations must have cracked it by now.
https://en.m.wikipedia.org/wiki/Null_encryption