idsearch=input("Enter the ID of the entry to edit: ")
data=ls(f"SELECT * FROM data WHERE id={idsearch}")
ifdata==[]:
print("This entry does not exist.")
else:
confirmation=input("Is this the correct entry? [y/n] > ").lower()
ifconfirmation=='y':
newvalue=input("Enter the new value: ")
cursor.execute(f"UPDATE data SET {criterian}='{newvalue}' WHERE id={idsearch}")
else:
print("You have cancelled the entry edit process.")
database_enc()
@ -122,7 +192,17 @@ print("keyvault is ready to use! Type 'help' for a list of commands.\n")
whileTrue:
command=input("> ").lower()
ifcommand=='help':
print("\nUsage:\n\nls - list entires\nrm - remove entry\ngen - generate a password or username\nstrength - check password strength\nedit - edit an entry\nshow/view - view an entry\nfind/search - open search wizard\nhelp - display this message\nversion - print current version\n")
print("\nUsage:\n\nadd - add an entry\nls - list entires\nrm - remove entry\ngen - generate a password or username\nstrength - check password strength\nedit - edit an entry\nfind/search - open search wizard\nhelp - display this message\nversion - print current version\n")