|
-
Jul 18th, 2004, 01:36 PM
#1
Thread Starter
Lively Member
Simple password protection
Removed, this code I created when started learning VB.NET, it as I see outdated, bye bye
Last edited by TLord; Jul 18th, 2004 at 06:58 PM.
Do you think my life is easy?
Do you think it's good to win?
do you think it's nice to kill?
Do you think learning is a must?
Do you think computers are nothing?
Do you think this post is stupid?
Do ypu think we're really humen?
DO YOU THINK IT'S GOOD TO THINK AT ALL? ? ? ! ! !
-
Jul 18th, 2004, 02:12 PM
#2
Re: Simple password protection method
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!).
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.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Jul 18th, 2004, 06:51 PM
#3
Thread Starter
Lively Member
Re: Re: Simple password protection method
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.
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
I didn't mean to teach that using ascii code is the untimate method.
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...)
Do you think my life is easy?
Do you think it's good to win?
do you think it's nice to kill?
Do you think learning is a must?
Do you think computers are nothing?
Do you think this post is stupid?
Do ypu think we're really humen?
DO YOU THINK IT'S GOOD TO THINK AT ALL? ? ? ! ! !
-
Jul 18th, 2004, 06:56 PM
#4
Thread Starter
Lively Member
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.
Do you think my life is easy?
Do you think it's good to win?
do you think it's nice to kill?
Do you think learning is a must?
Do you think computers are nothing?
Do you think this post is stupid?
Do ypu think we're really humen?
DO YOU THINK IT'S GOOD TO THINK AT ALL? ? ? ! ! !
-
Nov 3rd, 2004, 03:31 AM
#5
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.
I don't live here any more.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|