pwman-tools

Timeline
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

25 check-ins

2019-08-12
15:34
Remove outdated comment Leaf check-in: e3c3ae3637 user: atomicules tags: master, trunk
2019-08-09
17:13
Remove some of the unnecessary prints and comments check-in: 1baafd9e95 user: atomicules tags: master, trunk
15:48
Much more sensible escaping of quotes

I'd tried unicode before, but couldn't get it to work, I think because I was
missing an extra backslash that is required for some reason. check-in: 2165591f67 user: atomicules tags: master, trunk

13:36
Handle single and double quotes. Update README with assumptions

Quite a hacky mess to handle single and double quotes but seems to work. This was the test file used:

```
<?xml version="1.0"?>
<PWMan_PasswordList version="3"><PwList name="Main"><PwList name="SECURE-NOTES"><PwItem><name>test 1</name><host>http://sn</host><user>me</user><passwd/><launch>Stuff '</launch></PwItem><PwItem><name>test 2</name><host>http://sn</host><user>me</user><passwd/><launch>Stuff "</launch></PwItem><PwItem><name>test 3</name><host>http://sn</host><user>me</user><passwd/><launch>Stuff ;</launch></PwItem></PwList></PwList></PWMan_PasswordList>
``` check-in: e97152f612 user: atomicules tags: master, trunk

2019-06-29
11:05
Some spaces to tabs check-in: c039cd9bd1 user: atomicules tags: master, trunk
2019-06-26
08:11
Add to known issues post-migration check-in: 8629bde9d1 user: atomicules tags: master, trunk
06:56
Tidy up script and README. Initial working version.

- Remove a lots of dud comments
- Remove unnecessary print statements
- Add some better print statements to provide output during op creation
- Leave file decryption commented out and add comments explaining why
- Move mapping comments to README
- Complete list of known issues/limitations
- Enable deletion of decrypted file at the end check-in: 2345f9058d user: atomicules tags: master, trunk

2019-06-25
12:30
Only send --url if it's a login item

Not applicable for Secure Notes and op won't allow it. Using append and
wrapping in a list because cons inserts at the front and this is no good for
what we need. check-in: 2c99721959 user: atomicules tags: master, trunk

12:07
Correctly identify Secure Notes, correctly send optional args

- I had SECURE-NOTE whereas in my pwman it's SECURE-NOTES. Dur!
- For creating items with op need to use args like: `--title=Title` not
`--title Title`. Will have to see if things need quoting as well.
- Remove some print statements check-in: 11718ac61a user: atomicules tags: master, trunk

11:12
Initial commit of pwman2op

It "works", but doesn't yet. Main issues are:

- Seems to send everything as a Login item... but maybe that's correct based on
my test data, need to check
- Not setting titles
- Not setting tags

Update README to reflect that this repo now includes this file as well. check-in: 81d3818ee0 user: atomicules tags: master, trunk

2014-02-11
12:15
Re-license as BSD 2-Clause

I might change my mind again. I don't know. I'm the same with photos. check-in: 2cba61af1a user: atomicules@users.noreply.github.com tags: master, trunk

2013-07-16
11:44
Create LICENSE check-in: bbd0069fdd user: atomicules@lavabit.com tags: master, trunk
2013-02-03
21:42
Store secure notes in the "launch" field as it's 256 vs 64 char

And secure notes are likely to be longer. Since whole file is encrypted
anyway, doesn't matter which field you use to store things in. Saves
patching PWman to make the password field accept more chars.

Add note to README regarding this known limitation. check-in: 1ead16f19c user: atomicules@lavabit.com tags: master, trunk

21:35
Use Ascii armoured output

Note that this doesn't hugely matter. PWman has no trouble reading the
file under normal encryption and will convert it to Ascii when saving it
anyway, but using Ascii up front is more what you'd expect. check-in: d3432a1e16 user: atomicules@lavabit.com tags: master, trunk

2012-12-10
10:04
Fix identation check-in: e9eafc3f15 user: atomicules@lavabit.com tags: master, trunk
10:02
Remove spurious spaces check-in: adf34078f1 user: atomicules@lavabit.com tags: master, trunk
09:47
Use sublists in PWman to match groups in Lastpass.

I hadn't realised PWman supports sublists (groups), therefore can match
the grouping structure used in Lastpass.

- Now reads in CSV file to hashtable. Since CSV file is not ordered by
group, using a hashtable means we can loop through and create a key
for a group if it doesn't exists, or collate entries against a
existing group/key.
- Writing out hasn't changed much. Loops through the keys of the hash
table and loops within each key/group as well. check-in: 05989bbd9b user: atomicules@lavabit.com tags: master, trunk

09:40
Capitalise name. check-in: 35b06b14a8 user: atomicules@lavabit.com tags: master, trunk
2012-09-03
08:17
GPG encrypt the file and remove plain text files as part of the script

Since that is kind of the point of scripting and automation. Might as
well get the computer to do as much as possible of the task. check-in: f2061c8df2 user: atomicules@lavabit.com tags: master, trunk

2012-08-22
08:04
Skip first line of the CSV file (header)

Closes #1. check-in: 5b2827f458 user: atomicules@lavabit.com tags: master, trunk

07:25
Retabbing only. check-in: 0d98c52cc2 user: atomicules@lavabit.com tags: master, trunk
2012-08-21
22:40
Adding README check-in: e22f2fe3eb user: atomicules@lavabit.com tags: master, trunk
22:38
Completed and working script

Remove all the notes, etc and tidy up into a working script. Needed to
xml encode the output since pwman is xml based and will throw a major
wobbly on things like ampersands. check-in: 04ae81f293 user: atomicules@lavabit.com tags: master, trunk

22:35
Built working function using lambda

In the initial commit was trying to call actual function from
map-csv-file:

(map-csv-file (function blah))

But this was giving me a problem with a Nil being returned right at the
end and bombing everything out. Using lambda can format out to stream
directly. check-in: 0999fed3b3 user: atomicules@lavabit.com tags: master, trunk

09:35
Commit for ref check-in: f357f83839 user: atomicules@lavabit.com tags: master, trunk