Jump to content
Sign in to follow this  

Import Passwordsafe into Passwordstate

Recommended Posts

If you need to import all of your data from PasswordSafe into Passwordstate, this is the preferred process due to the below Powershell script keeping the correct format of your PasswordSafe database.  We'd like to thank one of our customers Fabian Näf from Switzerland for writing this script for us.  He did a great job and it's helped out many of our customers.


Process Start:

  1. In Passwordstate, identify and note down your System Wide API key from Administration-> System Settings -> API and you will find it under “Anonymous API Settings & Key
  2. Create a Password List Template under the Passwords Menu -> Password List Templates.  On this template please set the following options and then save the template:
    1. Disable the option to prevent the saving of password records if they are found to be a “Bad Password” (screenshot 1 below)
    2. Uncheck the option so the Password field is not required, and the URL field is enabled (screenshot 2 below)
  3. Identify and note down the TemplateID by toggling the column visibility (screenshot 3 below)
  4. In PasswordSafe, open your database and export the contents from File -> Export to -> Plain Text (tab separated).  As Delimiter use the default-value "»"
  5. Download the script from:  https://www.clickstudios.com.au/downloads/import-passwordsafe.zip
  6. Extract this zip file and open with Powershell ISE or the straight Powershell shell, if you prefer
  7. You will be prompted to answer 5 pieces of information:
    1. The username of your Passwordstate Security Administrator
    2. Your Passwordstate URL
    3. Your System Wide API key
    4. Your PasswordList Template ID
    5. It will ask you to browse to your Exported .txt file


That’s it, the script will now run through and automatically read all of the information out of the .txt file, and import it into Passwordstate.  From here, there are a few other things you might want to consider doing after the script has run successfully:


  1. You may want to rearrange your folder structure.  Ie possibly you might want to create some new folders for each of your teams, and then drag and drop existing Password Lists/Folders inside of them
  2. Once you are happy with your Folder structure, you should start applying permissions to either Password Lists or Folders using the following video as a guide: https://www.youtube.com/watch?v=QBJE_xD185U
  3. Best practices are to use Security Groups to apply permissions, instead of individual users, if possible



Screenshot 1:



Screenshot 2:



Screenshot 3:





Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this