Skip to content

Commit

Permalink
Command line tool that decrypts an OPVault keychain and dumps it to s…
Browse files Browse the repository at this point in the history
…tdout.

To compile: gcc -o opvault opvault.c cJSON.c -lcrypto

Usage: ./opvault </path/to/mykeychain.opvault> <password>

This is just a proof of concept; I'll be recycling this into proper OPVault
support in 1pass later and deleting this tool.

This uses OpenSSL's libcrypto for the math instead of all the homegrown
crypto this project is otherwise using. I'll probably migrate the rest in
this direction, too, since this wasn't as bad as I expected to use and
gets you all the package-manager mojo of automatic bug fixes and security
patches and shared code, etc.

cJSON parses JSON in C. That is from https://github.com/DaveGamble/cJSON

An example OPVault keychain from AgileBits is available here:

https://cache.agilebits.com/security-kb/
  • Loading branch information
icculus committed Jun 23, 2017
1 parent 6c04634 commit 5a39f72
Show file tree
Hide file tree
Showing 3 changed files with 3,599 additions and 0 deletions.

0 comments on commit 5a39f72

Please sign in to comment.