Removed, this code I created when started learning VB.NET, it as I see outdated, bye bye:wave:
Printable View
Removed, this code I created when started learning VB.NET, it as I see outdated, bye bye:wave:
Gunning for a job with the NSA, are we? ;)Quote:
Originally posted by TLord
If you forget the password, simply delete the password file, and start the program (enver give the Master Password to anyone!).
Seems like all you are doing is converting the characters into their ASCII equivelant, which seems a bit too simple to be called protection.
You'd probably be better off going with one of the crypto methods built into the framework.
Quote:
Originally posted by crptcblade
Gunning for a job with the NSA, are we? ;)
Seems like all you are doing is converting the characters into their ASCII equivelant, which seems a bit too simple to be called protection.
You'd probably be better off going with one of the crypto methods built into the framework.
I didn't mean to teach that using ascii code is the untimate method.Quote:
Originally posted by TLord
First, if you don't create your own decoding/encoding fuctions, your files will be easily figured
...Here I'll create a small function for encoding texts nad put it in the Main Module
Just included some steps, this is one, also for small applications of course you won't go writing ecryption code longer than the application's code itself! (When I mean to write some code to be 100% reliable, I don't leave a corner open...)
Anyway this code I used a long time ago when I started learning VB.Net... so I'm removing it, OLD CODE is ODD CODE.
The easiest way to 'save' a password to a file is to hash it and then save the hash. The password cannnot be created from the hash (unless you use a brute force crack).
To validate the user's typed password each day, simply hash it and compare it to the one stored in the file, if the hashes match then the passwords (by definition) must also match.
This way there is a good level of protection for minimal effort.
Check out the Cryptography namespace for the SHA classes.