Closed GoogleCodeExporter closed 9 years ago
Hi angusmchisholm,
The native secrets csv format has 5 columns, see the FileUtils.exportSecrets()
method:
http://www.google.com/codesearch/p?
hl=en#UM8J84NpMF8/trunk/src/net/tawacentral/roger/secrets/FileUtils.java&q=expor
tSecrets%20package:http
://secrets-for-android%5C.googlecode%5C.com&l=214
Or, if you know java, maybe you could write the import code directly in
secrets. You can see the
method importSecrets() in the same file as above, and look to see how the
import from OI Safe is
handled:
http://www.google.com/codesearch/p?
hl=en#UM8J84NpMF8/trunk/src/net/tawacentral/roger/secrets/FileUtils.java&q=impor
tSecrets%20package:http
://secrets-for-android%5C.googlecode%5C.com&l=300
Original comment by roge...@google.com
on 10 Jun 2009 at 1:27
Sure, I'll pull down the source code and take a look.
Original comment by angusmchisholm@gmail.com
on 11 Jun 2009 at 8:37
Doesn't look like revelation will export into a nice and simple csv file. The
usable
options are an xml schema or plain text in the form:
Gmail [Email]
Google mail account
2008-10-22 11:47:06
- Email: angusmchisholm@gmail.com
- Hostname: mail.google.com
- Username: angusmchisholm@gmail.com
- Password: password
Google Secrets [Phone]
2009-06-05 12:07:04
- PIN: password
I'd hope it would be a simple case of juggling the columns using your existing
CSV
code but this doesn't seem possible.
Am going back to the idea of a perl script.
Original comment by angusmchisholm@gmail.com
on 12 Jun 2009 at 11:38
Sounds fine Angusmchisholm. Would you be willing to contribute your perl
script here
and make it available to others?
Original comment by roge...@google.com
on 13 Jun 2009 at 2:04
File should be exported from Revelation using the XML format.
Suck eggs moment but please remember to delete the revelation output file and
the
Secrets input file once you're done.
When writing this I used the following:
version 0.4.11 of Revelation
version 1.4.1 of Google Secrets
Only basic Perl is required. A free compiler is available at
http://www.activestate.com/activeperl/
If you use any exotic characters that aren't being translated correctly please
let me
know. Revelation makes things like the & character safe for for XML i.e.
converts to
& so these will have to be translated.
Any problems let me know.
Angus.
Original comment by angusmchisholm@gmail.com
on 20 Jun 2009 at 12:12
Attachments:
Thanks for the script Angus. I'll take a look and get back to you.
Original comment by roge...@gmail.com
on 22 Jun 2009 at 4:46
Hi Angus,
I took a look at your code and ran it through an example file. It works pretty
well,
thanks for taking the time to code up the conversion.
I don't know perl, so no comments about the code itself. I have some minor
usability
comments which you might consider addressing.
1. For type, maybe it would be better to put that in the Notes instead of the
description.
For example, you could add a line to the notes like this:
Type:creditcard
2. For folders, it would be nice to remember the nesting level, and add that to
the Notes
as well. For example, if a password is in a folder "folder2" which is in a
folder
"folder1", you could add lines to the Notes likes this:
Folder:folder1
Folder:folder2
the order of the folders would imply the nesting.
3. All double quotes need to be escaped, otherwise the generated secrets.csv
file may be
incorrect. You should replace all double quotes (") with two double quotes
(""). For
example:
Angus says "how do you?"
becomes:
Angus says ""how do you?""
I have attached a sample revelation xml file with some funky strings that
exercise
boundary conditions. You can use this for testing. Thanks!
Original comment by roge...@google.com
on 22 Jun 2009 at 11:43
Attachments:
Original comment by roge...@gmail.com
on 21 Sep 2009 at 11:25
See comment #5 above for perl code to convert format.
Original comment by roge...@gmail.com
on 21 Sep 2009 at 11:34
Because I wanted to use my revelation passwords on my new Android based phone as
well, I took a look at this script. I had some problems with it not converting
special character combinations well. Furthermore I wanted to be able to convert
my
password files without having to export them to plaintext in reveleation first.
Because of this I wrote a little application which is able of converting the
encrypted Revelation files to the needed import CSV format of Secrects.
I just thought this might be of interest to anyone searching for this issue.
It can be found on github: http://github.com/jakobwesthoff/Revtrans
Cheers,
Jakob
Original comment by jakob.we...@gmail.com
on 23 Jan 2010 at 2:51
Original issue reported on code.google.com by
angusmchisholm@gmail.com
on 28 May 2009 at 9:06