Results 1 to 5 of 5

Thread: Simple password protection

  1. #1

    Thread Starter
    Lively Member TLord's Avatar
    Join Date
    Jun 2004
    Posts
    95

    Post 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? ? ? ! ! !

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091

    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

  3. #3

    Thread Starter
    Lively Member TLord's Avatar
    Join Date
    Jun 2004
    Posts
    95

    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? ? ? ! ! !

  4. #4

    Thread Starter
    Lively Member TLord's Avatar
    Join Date
    Jun 2004
    Posts
    95
    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? ? ? ! ! !

  5. #5
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    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
  •  



Click Here to Expand Forum to Full Width