in reply to Re^4: Password Encryption and Decryption
in thread Password Encryption and Decryption

If your application wants a clear password, then you have to give it a clear password. There is no way around this.

You can have your password in your program in an encrypted form and only have it decrypted against another password it asks for when you run it. That would be a more secure way, but not really practical.

Another solution would be to save your password in a file on a memorystick and have your program read it from the stick and remove the stick once your are logged in. Then nobody can log in as you unless they also have access to the file on the memory stick. Your security problem then becomes a matter of physical security of your memorystick.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

My blog: Imperial Deltronics
  • Comment on Re^5: Password Encryption and Decryption