Password Storage In C++

This will work on desktop and on embedded low resource systems.

Don’t store the password, store a salted hash of the password and compete against that. Then it doesn’t matter if someone steals the hash.

This might not be what you want to hear but I’d recommend not implementing your own crypto if you want to do anything serious with it. If you want to do this for learning or for fun then go for it. Otherwise use some readily available c++ crypto library. The reason I say this is because it is incredibly difficult to write crypto without botching up and adding bugs/backdoors that experts can exploit easily.

I like that you’re giving this advice, but it’s severely undermined by using vice as a source.

That’s like going to Teen Vogue for a crash course on quantum mechanics.

1 Like

What? No. Why would I make my own implementation of AES.

It seems as not many even understand what I want to do.

Anyways it doesn’t matter now because now I’m using a fixed key stored on a RFID tag thus making it retarded to hash anything since I can just use a two way encryption algorithm with that key and a random IV.

1 Like