Example #1
0
 def create(self):
     print(
         'Please proivide the name of the site or app you want to generate a password for'
     )
     app_name = input()
     print('Please provide a simple password for this site: ')
     plaintext = input()
     passw = password(plaintext, app_name, 12)
     subprocess.run('xclip', universal_newlines=True, input=passw)
     print('-' * 30)
     print('')
     print(
         'Your password has now been created and copied to your clipboard')
     print('')
     print('-' * 30)
     user_email = input('Please provide a user email for this app or site')
     username = input(
         'Please provide a username for this app or site (if applicable)')
     if username == None:
         username = ''
     url = input(
         'Please paste the url to the site that you are creating the password for'
     )
     self.db_manager.store_password(passw, user_email, username, url,
                                    app_name)
Example #2
0
 def create(self):
     print(
         'Please proivide the name of the site or app you want to generate a password for'
     )
     app_name = input()
     print('Please provide a simple password for this site: ')
     plaintext = input()
     passw = password(plaintext, app_name, 15)
     print(passw)
     pyperclip.copy(passw)
     print('-' * 30)
     print(' ')
     print(
         'Your password has now been created and copied to your clipboard')
     print('')
     print('-' * 30)
     user_email = input(
         'Please provide a user email for this app or site(default)')
     if len(user_email) < 1:
         user_email = default_mail
     username = input(
         'Please provide a username for this app or site (if applicable)')
     if username == None:
         username = '******'
     url = input(
         'Please paste the url to the site that you are creating the password for'
     )
     if url == None:
         url = '-'
     DB().store_passwords(passw, user_email, username, url, app_name)
Example #3
0
def create(a, b, c):
    print('-' * 80)
    print(
        'Please proivide the name of the site or app you want to generate a password for'
    )
    app_name = input()
    print('-' * 80)
    print('Please provide a simple password for this site: ')
    plaintext = input()
    print('-' * 80)
    passw = password(plaintext, app_name, 12)
    if platform == 'win32':
        subprocess.run('clip.exe',
                       universal_newlines=True,
                       input=passw,
                       shell=True)
    elif platform == 'linux' or platform == 'linux2':
        subprocess.run('xclip',
                       universal_newlines=True,
                       input=passw,
                       shell=True)
    else:
        print('Sorry, OS still not compatible')
        exit()
    print('-' * 80)
    print('')
    print('Your password has now been created and copied to your clipboard')
    print('')
    print('-' * 80)
    user_email = input('Please provide a user email for this app or site: ')
    print('-' * 80)
    username = input(
        'Please provide a username for this app or site (if applicable): ')
    print('-' * 80)
    if username == None:
        username = ''
    print('-' * 80)
    url = input(
        'Please paste the url to the site that you are creating the password for: '
    )

    # pylint: disable=too-many-function-args
    store_p(plaintext, user_email, username, url, app_name)
    store_passwords(passw, user_email, username, url, app_name, a, b, c)
Example #4
0
def create_password():
    print("--" * 50)
    user_name = input('Please provide a username for the app or website : ')
    if user_name == None:
        user_name = ''
    print("**" * 30)
    plaintext = input('Please provide a password for the app or website : ')
    passw = password(plaintext, user_name)
    pyperclip.copy(passw)
    print("**" * 30)
    print("Your password has now been created and copied to your clipboard")
    print("**" * 30)
    user_email = input(
        'Please provide the email which used to login to app or website : ')
    print("**" * 30)
    app_name = input(
        'Please provide the name of the application for which you are saving password : '******'Please paste the url to the site that you are saving password for : ')
    print("--" * 30)
    insert_password(user_name, passw, user_email, app_name, url)
Example #5
0
def create():
    print(
        'Please proivide the name of the site or app you want to generate a password for'
    )
    app_name = input()
    print('Please provide a simple password for this site: ')
    plaintext = input()
    passw = password(plaintext, app_name, 12)
    print('-' * 30)
    print('')
    print('Your password has now been generated and saved')
    print('')
    print('-' * 30)
    user_email = input('Please provide a user email for this app or site')
    username = input(
        'Please provide a username for this app or site (if applicable)')
    if username == None:
        username = ''
    url = input(
        'Please paste the url to the site that you are creating the password for'
    )
    db = DBHelper()
    db.store_passwords(passw, user_email, username, url, app_name)