![]() |
|
Password Manager V.1 - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: Python (https://sinister.li/Forum-Python) +--- Thread: Password Manager V.1 (/Thread-Password-Manager-V-1) |
RE: Password Manager V.1 - ArkPhaze - 06-03-2013 (06-03-2013, 07:50 AM)Deque Wrote:(05-23-2013, 08:35 PM)ArkPhaze Wrote: If I'm understanding this correctly, "mysimplepassphrase" is used for both the encryption and decryption as the key, but for decryption, it checks against the hardcoded plaintext of the master password anyways to see if you have entered the master password as input, itself? :lol: With the way I read what you posted, hashing the way I mentioned would have been more secure. I didn't get/understand what you originally posted though because this is not the way I imagined it. ![]() scrypt is "for the truly paranoid" though lol. And in places where speed may be a consideration for performance, that's where the scale balances itself out as to what you should use. For one master password, I suppose that's irrelevant. RE: Password Manager V.1 - Deque - 06-03-2013 (06-03-2013, 08:26 AM)Ex094 Wrote: The pseudo code you gave above, I am confused with this line: That just tells you to write the known plain text into the first line, then make a newline (the \n) and afterwards write the logindata. Example how the text looks like: Code: knownplaintext
user:pass
user:pass
user:passRE: Password Manager V.1 - noize - 06-03-2013 How about a -t (tip) argument to define a suggestion given by the user? Also, I would suggest having different levels of security. Let me show you a simple example of what I mean. Code: > add logon -p MYPASS -u RespectiveUsername -s 0Where -s is secLevel, and when set to 0 it just stores RespectiveUsername:MYPASS:0 with no additional security measures. I'd choose for a default of 1, encrypted with some simple algorithm and decrypted on demand. Level 2: password-based password encryption. Example: I want to store the password W0rd. Code: > add password -p W0rd -k EncryptionKey -s 2This way, the password is stored with some key-based encryption algorithm, and to retrieve W0rd I need to know EncryptionKey. Level 3: password hashing. You'll say, what's the use? Well, you could set a suggestion, so that the user might get to guess what password he had set and check from the script itself whether it's the correct password or not. You might also add a -h parameter (hidden), so that if I (e.g.) choose to view all stored passwords, hidden ones won't be listed. Those words can be seen only with the respective username (a username is needed if -h is set). Also, I'd suggest you to change that ">>>" prompt with something nicer, like: Code: Ex094@Ex094-PC: ~ here I can typeObviously, you should first gather the username and the computer name. Or maybe just a "$" would be better than ">>>". If you prefer angle brackets, I'd suggest to use only one (">"). P.S: please, note that this came to my mind like a bomb and that I have not checked out the code (I'm not even done with reading the OP, just wanted to post this before forgetting about it). RE: Password Manager V.1 - Ex094 - 06-03-2013 @noize Thanks for the suggestion mate, I'll be keep the current interface intact but if it's bugger for someone then I'll change it asap. For the security part, I'm having some hard time figuring out what to do first |