"new":"new <length> [ <label> <character set> ] ( 'length' = num characters in password, 'label' = optional name for the password 'charset' = characters that can be in the password (use '-<characters>' to exclude a list of characters))",
"echo":"echo <string content> ( 'string_content' = any text to be echoed )",
"dbg":"dbg ( Prints a debug output of the manager's state )",
"list":"list [ <label> ] (Prints the passwords currently stored 'label' = the password you want to decrypt)",
"list":"list [ <label> <password> ](Prints the passwords currently stored 'label' = the password you want to decrypt)",
"save":"save - Saves the state to the file originally inputted.",# TODO: make it possible to save to a new file
"drop":"drop <label> - deletes the selected label from the list of passwords. This can be undone with the 'undo' command, however if 'drop' is used on an already deleted password, the password is removed forever from the database.",
"undo":"undo - undoes the latest deletion/modification",
...
...
@@ -88,16 +88,16 @@ class State:
lines=content.split('\n')
head=lines[0]
try:
key,decrypt=password_decrypt(head,password)
except:
print("Password does not match for this database, and as such it cannot be decrypted.")
raiseException
# try:
# key, decrypt = password_decrypt(head, password)
# except:
# print("Password does not match for this database, and as such it cannot be decrypted.")