GithubHelp home page GithubHelp logo

onepassword-utilities's Introduction

This repository is no longer maintained. If you were looking for help with importing data into 1Password, check out our official import guide. MrC's converters can be found in the forum.

onepassword-utilities's People

Contributors

robyoder avatar mikecappella avatar dteare avatar

Stargazers

Steven Brown avatar  avatar Adnan khan avatar kush avatar George Tsiokos avatar  avatar eg avatar  avatar Izaak "Zaak" Beekman avatar Daniel Kertesz avatar Carlos Sparks avatar Sasi Kiran Malladi avatar JasonChiang avatar Abdullah Ramzan avatar Camilo E. Hidalgo Estevez avatar  avatar Josh Madden avatar  avatar  avatar  avatar  avatar  avatar François B avatar  avatar Luciano Paciornick avatar Matthew Herod avatar Mirco Babini avatar Henry Walshaw avatar Harsh avatar Xiaohai.lin avatar Steve Haworth avatar  avatar  avatar Dmytrii Sinko avatar zhou avatar Suraaj avatar Vincent Engler avatar Ryan Liao avatar Christopher Anderton avatar Stefan VanBuren avatar  avatar Robert Karl avatar Yassine ElBadaoui avatar  avatar Memmie Lenglet avatar Geoff Myers avatar Joël Galeran avatar Vlad Trukhin avatar Karsten Gresch avatar Amaury Catelan avatar Walter Skyrim avatar James Gifford avatar Felix Hirner avatar Jerzerak avatar Connor Kennedy avatar Simon Barnett avatar Niels Peretzke avatar Senon.Ye avatar Thomas H. Vidal avatar Jefferson Souza avatar Daniel McQuiston avatar Alex Thomassen avatar Kepler Sticka-Jones avatar Steve Phillips avatar Lorenz Schmid avatar Laris Qiao avatar Dan Loewenherz avatar Adrian avatar kbinani avatar  avatar Kenny Chandrasekera avatar Gluek avatar Pony Smith avatar Lauren avatar Felix A. Epp avatar David Pehrson avatar Jasen Han avatar Philip Ryan Johnson avatar Bartosz Cisek avatar Ilya avatar wikilike7 avatar Cheng Gu avatar Scott J. Kramer avatar  avatar Marcus R. Brown avatar Mark Grandi avatar Alberto J. Estrella avatar Matthew Seng avatar  avatar  avatar Guillermo Huerta avatar  avatar Frank Kooij avatar  avatar Mike Qian avatar  avatar Thomas Fritz avatar John D'Agostino avatar Yufan Lou avatar  avatar

Watchers

 avatar Camilo E. Hidalgo Estevez avatar  avatar Jeffrey Goldberg avatar Lauren avatar  avatar Scott J. Kramer avatar Nik Lal avatar James Cloos avatar JasonChiang avatar  avatar Benji avatar  avatar  avatar  avatar  avatar  avatar

onepassword-utilities's Issues

Add support for Windows for more converters

Considering the number of Windows PCs on the market -- I am really impressed how few of the importers are supported/tested on windows. Please consider adding support for more of them on windows (especially CSV)

Invalid token on converting KeePass2 database

I tried to convert my KeePass2 database.
However, the converter fails with the following error message:

perl5.16 convert_to_1p4.pl keepass2 -v my-keepass-database.kdbx 
Uncaught exception from user code:

    not well-formed (invalid token) at line 1, column 0, byte 0:
    Ù¢�gûKµ1Áòæ¿qCP¾X!jüZÿ 9ÍÚ�é#éß_Î0²Áî(®qÛªó¨8GplÝ21p ±z34yp�#>¨��Üò1�#Ì¿�KJ©iúU/J�pw �\2àÇ0tÈ©£ ¸ÌÌÓðT¼þ!�#�!!���ôpL�~»/�y   HhY�Ìw�ò��[+Æ«ß%píC)Q!%ü�ü    Cû´
    ^


     at /System/Library/Perl/Extras/5.16/darwin-thread-multi-2level/XML/Parser.pm line 187.
    XML::Parser::parsefile('XML::Parser=HASH(0x7fc8ca0b1818)', 'my-keepass-database.kdbx') called at /System/Library/Perl/Extras/5.16/XML/XPath/XMLParser.pm line 71
    XML::XPath::XMLParser::parse('XML::XPath::XMLParser=HASH(0x7fc8ca0fd410)') called at /System/Library/Perl/Extras/5.16/XML/XPath.pm line 77
    XML::XPath::find('XML::XPath=HASH(0x7fc8cb22d7f8)', '/KeePassFile/Meta/Binaries/Binary', undef) called at /System/Library/Perl/Extras/5.16/XML/XPath.pm line 102
    XML::XPath::findnodes('XML::XPath=HASH(0x7fc8cb22d7f8)', '/KeePassFile/Meta/Binaries/Binary') called at Converters/Keepass2.pm line 66
    Converters::Keepass2::do_import('my-keepass-database.kdbx', undef) called at convert_to_1p4.pl line 116

screenshot 2015-10-29 10 34 47

I also could not find a string in my KeePass database containing some parts of this token.

I used KeePass 2.26 on my Windows computer.

KeePass 2 file attachments import

Trying to use the converter from KeePass 2 and there are some entries in KP that have file attachments (KP allows them). They don't seem to make it in any form into 1Password, even though attachments seem to be supported in 1P.

error while converting to keepassx - unable to open file

when i start the converter with keepassx then i get following error:

cd '/Users/andi/Desktop/convert_to_1p4/' && /usr/bin/perl5.16 convert_to_1p4.pl keepassx '/Users/andi/Desktop/keepassx.xml' -v keepassx
Unable to open file: ARRAY(0x7f8c0182c620)
No such file or directory

EDIT: could solve it. could be closed.

$status mismatch in Keepass2 Converter

I've got a workaround but this might still be something worth reviewing.

When converting an exported Keepass2 XML file, the attachments weren't being written out and I was getting a Failed to inflate compressed data message for each attachment. After a little digging, I found that modifying the status check to the following ('stream end' being the addition) resolved the issue:

if ($status eq Z_OK or $status eq Z_STREAM_END or $status eq 'stream end') {

Digging through the zlib documentation it seems like 'stream end' and Z_STREAM_END should be the same thing, so I'm not entirely sure what's going on.

Help: SPB Wallet for Mac Desktop Conversion

Hi guys, a mid level understanding of everything here.
can someone help me convert SPB Wallet desktop .swl file?

followed the step. I see, and think I understand, that person who built utilities didn't write one for a Mac conversation (only windows).

is there another way to do this?
I have over 300 passwords - 8yrs accumulated.

thank you so much.

Where is the development branch ?

@mikecappella I've downloaded the "Testing Bits" on the forum, contributed some improvements, and want to integrate them here.

But I don't see that new code here. Neither on your fork. How to proceed ? Can you create a branch on your fork with the Testing Bits ?

I'm fixing bugs in the new Yojimbo converter.

Error while converting keepass2 file

Hi,
I'm trying to convert my Keepass2 passwords to 1password, with this converter. I've followed all the steps and tried the different options, but I'm getting this same error every time:

Failed to inflate compressed data: 
Use of uninitialized value $outfile in open at Utils/PIF.pm line 697 (#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.

Use of uninitialized value $outfile in concatenation (.) or string at
    Utils/PIF.pm line 697 (#1)
Cannot create 1pif output file: 
No such file or directory

I'm using MacOSX for converting the passwords, but I exported my Keepass2 file on a Windows pc.

Any idea what might go wrong?

Update bundle to version 1.0.9 to increase compatibility with Roboform data

If the RoboForm data contains a number of items with the same name, v1.0.8 of the utilities can fail to convert the data.

MrC already has version 1.0.9 available that fixes this and converts the data well.

Side note:
It converted RoboForm 1714 login items on a HDD machine with 2 GB of RAM in six seconds.

Import from KeePassX 2 not supported

1Password Converter does not offer an option to convert CSV files exported from KeePassX 2. The existing KeePassX converter fails to read the exported file as it expects an XML file – KeePassX 2 can only export to CSV. Furthermore, the generic CSV converter cannot handle the KeePassX 2 CSV file because the columns are in a different order.

KeePassX 2 CSV files have the following structure:

"Group","Title","Username","Password","URL","Notes"

Please add an option to convert KeePassX 2 CSV files.

Doesn't convert Keychain Items.

Bonjour,

I have major issues converting OSX Keychain items.

skip:convert_to_1p4 ptremblay$ cd '/Users/ptremblay/Desktop/onepassword-utilities-master/convert_to_1p4/' && /usr/bin/perl5.16 convert_to_1p4.pl keychain '/Users/ptremblay/Desktop/pm_export.txt' -v
Examined 824 items
Skipped 406 non-login items
Skipped 6 duplicate items
Imported 412 items
Exported 8 note items
Exported 404 login items
Exported 412 total items
You may now import the file /Users/ptremblay/Desktop/1P_import.1pif into 1Password
skip:convert_to_1p4 ptremblay$

So, about half of my keychain entries can't be exported correctly. How should I proceed now?

Thanks.
PM

error while trying to set up converter

I'm getting the following error using x64 portable Perl using the version of included in the readme.

\onepassword-utilities-master\onepassword-utilities-master\convert_to_1p4>perl convert_to_1p4.pl --help
Bareword found where operator expected at convert_to_1p4.pl line 5, near ""en" class"
(Missing operator before class?)
Bareword found where operator expected at convert_to_1p4.pl line 13, near "<title>onepassword"
(Missing operator before onepassword?)
Can't modify numeric lt (<) in scalar assignment at convert_to_1p4.pl line 5, near ""en" class"
syntax error at convert_to_1p4.pl line 5, near ""en" class"
Unrecognized character \xC2; marked by <-- HERE after at master <-- HERE near column 62 at convert_to_1p4.pl line 13.

Module versions & Status

onepassword-utilities-master\onepassword-utilities-master\convert_to_1p4>cpan Date::Calc
CPAN: CPAN::SQLite loaded ok (v0.202)
Database was generated on Thu, 19 Nov 2015 17:39:58 GMT
CPAN: Module::CoreList loaded ok (v2.83)
Date::Calc is up to date (6.4).

onepassword-utilities-master\onepassword-utilities-master\convert_to_1p4>cpan Text::CSV
CPAN: CPAN::SQLite loaded ok (v0.202)
Database was generated on Thu, 19 Nov 2015 17:39:58 GMT
CPAN: Module::CoreList loaded ok (v2.83)
Text::CSV is up to date (1.33).

onepassword-utilities-master\onepassword-utilities-master\convert_to_1p4>cpan XML::XPath
CPAN: CPAN::SQLite loaded ok (v0.202)
Database was generated on Thu, 19 Nov 2015 17:39:58 GMT
CPAN: Module::CoreList loaded ok (v2.83)
XML::XPath is up to date (1.13).

Add Prominent Caution

It would be a good idea to add a prominent cautionary note that users should disable any backup services (especially cloud backup services) that monitor their desktop before running the conversion operations. Otherwise, the user could inadvertently allow their unencrypted password database to be synced or backed up to a location other than their desktop.

Doesn't convert Keychain Notes

Summary:

Notes from Keychain.app can't be converted properly.

Steps to Reproduce:

I'm using a .keychain containing 115 text notes and nothing else to test migration from Keychain to 1Password. I've exported said .keychain as suggested in the README with
security dump-keychain -d test.keychain > test.txt
This resulted in a text file with all the items sorted by modification date and looks like the expected output form the security command.

Running convert_to_1p4 like this:

./convert_to_1p4.pl keychain -v test.txt gives me this output:

Examined 115 records
Skipped 113 non-login records
Skipped 0 duplicate records
Imported 2 records
Exported 2 login items
Exported 2 total items

113 of 115 notes items are completely skipped. The remaining 2 items are exported into the `.1pif`` file as password items.

Changing the export to
convert_to_1p4.pl keychain -i note -e note -v test.txt
results in a completely empty .1pif file.

Debug output for skipped items looks like this:

main                : Command Line: keychain -d test.txt
main                : Output file: /Users/<usershortname>/Desktop/1P4_import.1pif
do_import           : Entry 1
do_import           :   considering rules for CLASS
do_import           :       rule 1: called with genp
do_import           :       rule 1: returns 0   genp
do_import           :   considering rules for svce
do_import           :       rule 1: called with "Item - Title"
do_import           :       rule 1: returns 0   "Item - Title"
do_import           :       rule 2: called with "Item - Title"
do_import           :       rule 2: returns 1   Item - Title
do_import           :       rule 3: called with Item - Title
do_import           :       rule 3: returns 0   Item - Title
do_import           :   considering rules for srvr
do_import           :   considering rules for path
do_import           :   considering rules for ptcl
do_import           :   considering rules for acct
do_import           :       rule 1: called with <NULL>
do_import           :       rule 1: returns 0   <NULL>
do_import           :       rule 2: called with <NULL>
do_import           :       rule 2: returns 0   <NULL>
do_import           :   considering rules for mdat
do_import           :       rule 1: called with 0x32303034303531363135333134355A00  "20040516153145Z\000"
do_import           :       rule 1: returns 1   2004-05-16 15:31:45
do_import           :   considering rules for cdat
do_import           :       rule 1: called with 0x32303034303531363135333134315A00  "20040516153141Z\000"
do_import           :       rule 1: returns 1   2004-05-16 15:31:41
do_import           :   considering rules for DATA
do_import           :       rule 1: called with 0x<bunch of hex digits>...
do_import           :       rule 1: returns 1   0x<bunch of hex digits>...
__ANON__            :           skipping non-password record: genp: Item - Title

Expected Results:

Notes should be exported as notes to be imported as notes again. Notes should not be skipped.

Actual Results:

Notes aren't converted to notes but logins. Most notes are completly skipped.

Regression:

Tried Perl 5.16 included in OS X Mavericks as well as perl5.16 built with MacPorts. Explicitly specifying the perl interpreter doesn't change any of the results.
Keychain.app doesn't find any problems with the .keychain file.

Specifying -i note results in the same 2 passwords ending up in the .1pif.
Specifying -e note results in an empty export file. (0 bytes)
Specyfing both results in an empty export file.

Notes:

OS X 10.9.5 (13F34)
Keychain.app Version 9.0 (55153)
1Password 4.4.3 (443000)
convert_to_1p4 1.0.2 (From Agilebits Website, as well as from GitHub.)

Handle Dashlane files.

Currently there no easy way to import Dashlane items even the CSV files are a mess in dashlane.

Would be extremely handy to have this automated.

how to export iCloud.keychain ?

thanks for this wonderful tool! so far I was able to export my login.keychain and import it into 1Password.

But how do I dump the iCloud section? I don't know why, but a lot of passwords are saved under "iCloud" instead of "Login"...

Can't locate Utils/PIF.pm in @INC

After I set up my environment and began conversion, there was an error "Can't locate Utils/PIF.pm in @inc".

I simply solved this problem by copying three folders Utils, UUID and Converters into C:\myperl\perl\lib.

Hope this could help someone.

BTW, one could use this tool https://github.com/kspearrin/ff-password-exporter to export passwords in firefox to CSV format, then to 1PIF via this utilities.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.