Bjarni |grep -i tech · @HerraBRE
290 followers · 222 posts · Server floss.social

Still eagerly awaiting a response to my pull request. Waiting is so hard!

In the meantime, I've added zip and unzip commands to , to facilitate creating encrypted archives with recoverable passwords.

I haven't pushed my changes, because they depend on the pyzipper updates.

#pyzipper #passcrow #aes #zip

Last updated 2 years ago

Bjarni |grep -i tech · @HerraBRE
289 followers · 221 posts · Server floss.social

Hacking on made me want to hack on again.

#pyzipper #passcrow

Last updated 2 years ago

Bjarni |grep -i tech · @HerraBRE
289 followers · 221 posts · Server floss.social

Filed a pull request to see if wants my fancy new features: github.com/danifus/pyzipper/pu

Fingers crossed!

Incidentally, if I decide to do a talk about crash tolerant code, it will be a discussion about this change: github.com/danifus/pyzipper/pu

Not sure I can squeeze that into a lightning talk, TBH. But it might be fun to try?

#pyzipper

Last updated 2 years ago

Bjarni |grep -i tech · @HerraBRE
288 followers · 219 posts · Server floss.social

Spent a bit more time on my enhancements.

One of the interesting challenges to writing code like this, is: what happens if something crashes or the code is interrupted? Does data get corrupted? Can I reduce the chances of that?

Rewriting in place is good for reclaiming space, because it works even if a drive is full - exactly when you need to reclaim space! But it's risky, because if you crash part-way things may be in an odd state.

Crash-tolerant code is interesting.

Talk-worthy?

#pyzipper

Last updated 2 years ago

Bjarni |grep -i tech · @HerraBRE
288 followers · 218 posts · Server floss.social

Oh no, I got confused and wrote some useful code now instead of later!

Ah well. I've now got an updated (itself an updated zipfile) which supports deleting files from a archive - and thus also supports writing updated versions of files to a ZIP archive.

It's feels weird that I had to write this myself!

I guess I should probably figure out how to contribute my code as far back upstream as I can?

#pyzipper #Python #zip

Last updated 2 years ago

@HerraBRE@floss.social My local now knows how to export search results as a .ZIP archive of AES-encrypted messages!

I've also enhanced so I can add unencrypted files to an otherwise encrypted archive, which means embedding recovery support (and instructions) directly in the .ZIP is now feasible.

This is starting to tick all the security / portability / recoverability boxes.

I am very pleased!

#moggie #pyzipper #passcrow

Last updated 3 years ago

Bjarni |grep -i tech · @HerraBRE
162 followers · 58 posts · Server floss.social

I spent yesterday afternoon looking into whether I could port to use the cryptography module instead of .

After diving into the sources of both libraries and finding myself reading 's aes.c, I discovered this is most definitely not possible without awful perf killing hacks: stackoverflow.com/questions/69

Why? Because OpenSSL's AES CTR hard-codes a big-endian counter. compatible AES encryption requires a little-endion counter.

I'm not even mad.

#winzip #OpenSSL #cryptodome #Python #pyzipper

Last updated 3 years ago