Transfering Data for HandySafe to 1Password???

Chris90
Chris90
Community Member

Hello
I am using Handy Safe from Paragon. http://handy-safe.com/en
on PC (Win7-32), OS10.9 and iOS.
Now I want to switch from HandySafe to 1Passwort.
Befor I buy, I want to know how I can transfer all my Data from HandySafe to 1Passwort.
HandySafe offers only export funktion to XML forma.
How can I transfer all my Data without having to retype or copy/past more then 1000 data?
Thanks for help
Chris

Comments

  • Megan
    Megan
    1Password Alumni

    Hi @Chris90,

    Thanks so much for your interest in 1Password! To learn more about importing data from other applications, have a read through the following guide:

    http://learn2.agilebits.com/1Password4/Mac/en/KB/import.html

    Also, I just wanted to mention that 1Password has an awesome autosave feature in the browser extensions that lets you build up your 1Password database incrementally as you log into websites - this can be a great option to make sure everything is set up cleanly, and requires very little additional manual work. To learn more about this, have a read through this guide:

    http://learn2.agilebits.com/1Password4/Mac/en/the-basics.html

  • alecz
    alecz
    Community Member

    Hi all,
    I still cannot find a possibility to transfer the data from Handy-Safe to 1Password .....
    Handy-Safe just offers the export to a XML file - no CSV at all.

    Please advice,
    I need that 1Password without filling the fields from scratch....

  • MrC
    MrC
    Volunteer Moderator
    edited September 2014

    @alecz - what platform are you running Handy-Safe on? What platform and version of 1Password are you using?

    The XML is straightforward. I can write you a converter that will run on either Mac or Windows.

  • alecz
    alecz
    Community Member

    Thanks for the answer. Handy-Safe runs on Win7, 1Password also on Win7 (and of course on iPhone).

    Would be great to get a converter :-)

  • MrC
    MrC
    Volunteer Moderator

    I'm already working on it. Give me a few hours, as I have some other business to attend to first.

  • MrC
    MrC
    Volunteer Moderator

    A question. Handy Safe has (too) many different card types (34 on the Mac version), and it takes me a while to construct sample data and the internal data structures I need. I might be able to get you a test version faster if I know which card types are most important to you (example: Web site, Credit Card, etc.). Any card type I don't have handled ends up as a 1Password Secure Note, with all the fields and values as Field: Value.

    Also, if you've changed any of the field names inside of the stock cards, these fields (name: value) will be placed into the card's note section, and the card type itself might not be detected (the XML does not indicate a card's type).

  • alecz
    alecz
    Community Member

    I see that Handysafe does not make it easy to change to another product ;-)
    Thanks anyway for your effort... I think Web site is the most important and the one which I used most often

  • MrC
    MrC
    Volunteer Moderator
    edited September 2014

    Good input.

    I made good progress, but had too much on my plate today to get it done.

    The bulk of the code is done - it reads the Handy Safe XML. I've already added the Login, Credit Card and Notes definitions. I'll have that for you tomorrow afternoon PST (more appointments in the morning). That should be enough to get you going.

    Sorry for the delay.

    Edit: I have the converter working and will post a link shortly.

  • MrC
    MrC
    Volunteer Moderator
    edited September 2014

    I have an initial version for you to try. It is posted in my AgileBits Utilities folder. Download the file handysafe_to_1p4.zip.

    On OS X, Safari will automatically unzip the file, but other browsers may not, so you may need to unzip the file. On OS X, just place the zip file on your Desktop and double-click it. On Windows, double-click the zip file and drag the folder onepassword-utilities to your Desktop

    Be sure that the onepassword-utilities folder is on your Desktop, since the instructions assume this location.

    Inside the onepassword-utilities/handysafe_to_1p4 folder, you'll find instructions in the README.pdf.

    I'll add more card type definitions as you need them, and as I have time.

  • Tool
    Tool
    Community Member
    edited September 2014

    Hi MrC, it's great to know you're working on converting HandySafe data to 1Password, and that's just what I wanted.
    I tried your program and got below error message in Win8.1 x64 when run the command "perl handysafe_to_1p4.pl -v handysafe.xml". Is there something wrong with the directory of 1P4_import.1pif? Hope you could take your time out of your busy schedule and check it out.

    Error message:

    Use of uninitialized value $card{"expiry"} in concatenation (.) or string at
    handysafe_to_1p4.pl line 239 (#1)
    (W uninitialized) An undefined value was used as if it were already
    defined. It was interpreted as a "" or a 0, but maybe it was a mistake.
    To suppress this warning assign a defined value to your variables.

    To help you figure out what was undefined, perl will try to tell you
    the name of the variable (if any) that was undefined.  In some cases
    it cannot do this, so it also tells you what operation you used the
    undefined value in.  Note, however, that perl optimizes your program
    anid the operation displayed in the warning may not necessarily appear
    literally in your program.  For example, "that $foo" is usually
    optimized into "that " . $foo, and the warning will refer to the
    concatenation (.) operator, even though there is no . in
    your program.
    

    Uncaught exception from user code:
    Cannot create 1pif output file: \Users\Life/Desktop/1P4_import.1pif
    No such file or directory
    Stopped at PIF.pm line 371.
    PIF::create_pif_file(HASH(0x33dcdc8), "\Users\Life/Desktop/1P4_import.
    1pif", undef) called at handysafe_to_1p4.pl line 201
    main::export_pif(HASH(0x33dcdc8)) called at handysafe_to_1p4.pl line 136

  • MrC
    MrC
    Volunteer Moderator

    Happy to help. Sorry for the trouble. The update is now posted. Please give the new one a try.

  • Tool
    Tool
    Community Member

    Hi MrC, thanks for quick response. I tried the new version and the almost same error message displayed.
    Is "\Users\Life/Desktop/1P4_import.1pif" with unmatched / and \ the cause of the error? Could we try to generate the output file into just current directory?

  • MrC
    MrC
    Volunteer Moderator
    edited September 2014

    Hi Tool,

    I just downloaded the script and tested it on Windows, using what I think caused the error condition (an empty Expiry field inside the XML file), but it works fine. So I think by "almost same error message", you mean the "Cannot create ... " error message.

    Is your account name "Life" in Win 8.1 ? I wonder if this is a Win 8.x issue, where some user programs may not be able to generate files on the Desktop. I haven't tested it under Windows 8. I'll have to dig into this, if it is. ActivePerl should be converting the mixed use of forward and backward slashes. If you want to test out the theory, you use Nodepad to open the script file, and change line 94:

    outfile => join('/', $^O eq 'MSWin32' ? $ENV{'HOMEPATH'} : $ENV{'HOME'}, 'Desktop', '1P4_import'),
    

    to use a backslash (doubled-up):

    outfile => join('\\', $^O eq 'MSWin32' ? $ENV{'HOMEPATH'} : $ENV{'HOME'}, 'Desktop', '1P4_import'),
    

    save the file and see if that helps. The only change in those lines of the conversion of / forward slash into the doubled up \ backslashes.

    If you want to generate the PIF in the current directory, just add the -o or --output option:

    perl handysafe_to_1p4.pl -v -o 1P4_export handysafe.xml

    MrC

  • Tool
    Tool
    Community Member
    edited September 2014

    Hi MarC, thank you very much! It worked with the option -o to generate the PIF in current directory, though changing "/" to "\\" in line 94 still didn't work if you wanted to know that.

    All my items have been imported into 1Password. But one question with my case is that some Chinese characters I'm using were imported into unreadable characters. If you might be able to invest more time, I'm wondering if you can share any idea or find any way to resolve this issue.

  • MrC
    MrC
    Volunteer Moderator

    This is still a work in progress, and I'm right on the middle of a project. I just posted an update to deal with a bug that was not importing the notes field.

    Can you see how it works better you now?

    Regarding the Chinese characters, can you create me a sample card with sample data, including Chinese characters? You'd have to do this:

    • Backup your Database (Tools > Backup), and save it someplace safe

    • Lock your vault

    • Use File > New Database

    • Create New Database (be sure you already backed up the database)

    • Create a single new card, say a Web Site and enter sample data, including some Chinese characters in both the Note and perhaps in the Other field.

    • Export that database to XML (File > Export)

    • Examine that XML file and be sure there is no personal data in it

    • Zip that XML file and email it to me at the email address at the top of the script.

    • Restore from backup your saved database (Tools > Restore)

  • Tool
    Tool
    Community Member

    The sample xml file has been sent out. Good luck!

  • modelci
    modelci
    Community Member
    edited October 2014

    hi everyone; this process is very long and painful.
    i bought a different program, it can import from Handysafe directly. the name is < product name redacted >

  • MrC
    MrC
    Volunteer Moderator

    That's unfortunate. I just did a conversion and it took < 30 seconds from start to finish.

    But something seems trollish about your post.

  • Bebass
    Bebass
    Community Member

    Hi,
    thank you for your posting. I found this posting via Google. I just tested the recent version of the master.zip from github for Handysafe. It worked very well for a conversion from Handysafe 3 to 1Password 4 under OS X 10.10. Very good explanation in the readme document!

    I just want to leave a comment that i tried at first to get the Perl script run under OS X 10.8. The problem there is that the Perl version of 10.8 is too old. To update this version to the necessary version, you have to download Xcode from the App store. A lot of gigabytes just for updating Perl! So for my part i upgraded from 10.8 to 10.10. Also a lot of gigs, but nice OS user experience. Running the perl script was no problem then!

    So, thank you very much! I was about to program a converter on my own. Your work saved a lot of my time.

  • MrC
    MrC
    Volunteer Moderator

    Hi @Bebass

    Sorry for your troubles with 10.8. It is possible to use the converter script using Perl version 5.14 which should be included in Mountain Lion. I think a minor tweak to the specified Perl version is all that is required to make it work (the version requirement is forced in the script files).

    The reason for the Perl version is simply that I have not tested and qualified the scripts to run on earlier versions of Perl, and there were a couple of important Unicode changes in Perl 5.16. I've helped a few folks convert on older OS X versions, but haven't formally documented how to accomplish it (this would also require explaining the possible pitfalls, and that is probably more complex to explain than would be useful).

    You are correct.... Going the XCode route is very heavy duty. I know one user has used ActivePerl for IS X, and was successful in the conversion.

    Thanks for your great feedback, and very nice post!

This discussion has been closed.