Python Forum
[URGENT] Trying to create a simple password manager in python
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[URGENT] Trying to create a simple password manager in python
#6
First of all, don't use buzzwords like URGENT in your topic. This will lead not to answer a question.

Some hints.
  1. Don't use pickle to save consistent data outside of Python. Sometimes the format changes after an update and then your data is lost. Use something different. First you can try plain text files, later you should look for an database.
  2. Don't invent your own password manager, if you don't know about hashing, symmetric and asymmetric encryption and entropy. You can still do your program, to understand the concepts behind a little bit better.
  3. Functions in Python are doing something. Use verbs for functions, lower case and underscore.
  4. Look into the string module of the Python stdlib. There are already prepared strings for ascii_lowercase, ascii_uppercase, digits
  5. Python don't have a switch statement. Instead of asking for every selected option, you can make a dict for this task:
    def create_user():
    username = input('Enter your username: ')
    # code
    
    def delete_user():
    username = input('Enter your username: ')
    # code
    
    selection_dict = {0: create_user, 1: delete_user}
    userinput = int(1) # user choose option 1
    try:
    function_to_call = selection_dict[userinput]
    except KeyError:
    print('You have selected a non existing option...')
    else:
    function_to_call()
  6. Later you can try to do the same task object oriented. But first do the basics.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
RE: [URGENT] Trying to create a simple password manager in python - by DeaD_EyE - Jul-28-2017, 08:04 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation Python Homework (Urgent help needed!!) chickenseizuresalad 6 4,497 Oct-11-2021, 01:59 AM
Last Post: Underscore
Exclamation urgent , Python homework alm 2 2,409 May-09-2021, 11:19 AM
Last Post: Yoriz
  urgent I got a syntax errors alm 2 6,014 Feb-28-2021, 02:54 PM
Last Post: alm
Heart Urgent homework help needed Medou 4 2,836 Nov-24-2020, 09:28 AM
Last Post: buran
  Python project help (Password manger using mysql) lifeofpy 2 4,834 Jul-31-2020, 06:18 PM
Last Post: deanhystad
  Python Password Saver Assignment sshellzr21 2 6,292 May-02-2020, 01:34 AM
Last Post: sshellzr21
  How to create simple thread safe singletone that protect __init__ on import module umen 0 1,716 Apr-16-2020, 09:43 AM
Last Post: umen
  [Urgent] build code GodMaster 2 1,877 Mar-23-2020, 12:25 AM
Last Post: jefsummers
  Bifid Genkey (Urgent) Laura123 2 2,131 Mar-09-2020, 08:09 PM
Last Post: micseydel
  Python Homework Help *Urgent GS31 2 2,668 Nov-24-2019, 01:41 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020