Menu

How to import text files (each one having, as filename the relevant domain name , and as content, 1st line is username and 2nd line is password)

Help
bluemark
2015-10-27
2015-10-28
  • bluemark

    bluemark - 2015-10-27

    Greetings

    I'd like to use Keepass (win10x64).

    The problem is that, I have my passwords gathered all these years like this:
    each username/password pair in a separate text file, having as filename the domain name of the relevant password,
    and inside each .txt file, the first line is the username, and the 2nd the password (both without a prefix).

    For example:
    Filename: sourceforge.net.txt
    Contents:

    my_username
    my_Password
    

    Is there a way to import all these files to Keepass?
    (I didn''t find any relative plugin.)

    To fascilitate this, I could for example (via some bash script)
    to prepend each 1st line with 'User Name' and 2nd with 'Password'

     

    Last edit: bluemark 2015-10-27
  • Paul

    Paul - 2015-10-27

    If you can convert them to CSV format with bash you can then import the CSV.
    Use this format, leaving the headings - KeePass will use them to determine fields:

      "Account","Login Name","Password","Web Site","Comments"
      "Sample Entry2","Someuser","pass\,with\\escaped\"characters","http://keepass.info/","Notes"
    

    Note: if you have a comma, double quote or backslash in the password you need to escape it with a backslash.

    cheers, Paul

     
  • bluemark

    bluemark - 2015-10-28

    Thank you.
    With help from stackexchange.com (unix.stackexchange.com) I managed to import all my text files.

     

Log in to post a comment.

MongoDB Logo MongoDB