Hi, before I go too far searching (already done some), I thought I just ask anyone for their thoughts.On windows use the credentials manager (ee CredWriteW/CredReadW) https://docs.microsoft.com/en-us/windows/desktop/SecAuthN/authentication-functions#credentials_management_functions on linux I guess gnome Keyring is one of the libraries on macos I have no idea.
My program (as I've been previously discussing) needs to send emails and as such I need to use a password.
My (quick) question is how and where should I store these passwords?
Obviously they need to be encrypted so what is the easiest means to do this, is there a module?
I was also thinking of storing them in the Registry as 1) it would help me learn about accessing the Registry for other things and 2) seems like a good place to store stuff that is needed on a regular basis? I wasn't keen on the idea of an .ini file, but not averse to it.
Thanks
Dave
My (quick) question is how and where should I store these passwords?Encrypting a password is a bad idea, the correct method is to hash it so that it can't be recovered, only matched.
Obviously they need to be encrypted so what is the easiest means to do this, is there a module?
My (quick) question is how and where should I store these passwords?Encrypting a password is a bad idea, the correct method is to hash it so that it can't be recovered, only matched.
Obviously they need to be encrypted so what is the easiest means to do this, is there a module?
My program (as I've been previously discussing) needs to send emails and as such I need to use a password.
My (quick) question is how and where should I store these passwords?
But you don't need to recover. Just store the hash and to check you do: "IF GetHash (Password) = HashedPassword THEN".My (quick) question is how and where should I store these passwords?Encrypting a password is a bad idea, the correct method is to hash it so that it can't be recovered, only matched.
Obviously they need to be encrypted so what is the easiest means to do this, is there a module?
Hashing won't do: They're used to access other service so he needs to be able to recover them -
But you don't need to recover. Just store the hash and to check you do: "IF GetHash (Password) = HashedPassword THEN".
My program (as I've been previously discussing) needs to send emails and as such I need to use a password.
My (quick) question is how and where should I store these passwords?
Obviously they need to be encrypted so what is the easiest means to do this, is there a module?
No. Read the OPs post. He isn't asking the user for a password, he's trying to store passwords the program can use to access other service and he wants to store them securely.
There is no secure way to store password in that context.
If you can decrypt it, then some hacker will also.
Bart
No. Read the OPs post. He isn't asking the user for a password, he's trying to store passwords the program can use to access other service and he wants to store them securely.Oh, I missunderstood.
(...) crackers (not hackers, please). (...)Yes. I'm hacker, not cracker. 8)