Skip to main content

Introduction

A pure-Python library that can read and write Password Safe v3 files. It includes full support for almost all current Password Safe v3 database headers and record headers.

History

The library was initially written by Paulson McIntyre for Symantec in 2009. It was later released by Symantec under the GPLv2 in 2011. Changes and updates have been made since by Paulson McIntyre (GpMidi), Evan Deaubl (evandeaubl), and Sean Perry (shaleh). Rony Shapiro maintains the project page and acts as gate keeper for new patches.

Known Issues

  1. Lack of documentation
  2. Unit tests are out-of-date
  3. There MAY be an issue with the order that NonDefaultPrefsHeader serializes preferences for HMAC validation in pypwsafe. Although the library validates HMACs fine at the moment, so who knows.

Dependencies

  1. pycryptoplus
  2. pycryptodome

Install Instructions

RHEL/CentOS

  1. Install libmcrypt and it's dev package along with the Python dev package: yum install libmcrypt-devel libmcrypt python-devel These packages are needed by the installer for python-mcrypt
  2. Install the standard Linux development tools. For RHEL/CentOS 5 and 6, yum groupinstall 'Development tools' can be used if your YUM repos have group information.
  3. Use Pip or easy install to install python-mcrypt, hashlib, and pycrypto
  4. Run the setup script python setup.py install
  5. Test that the module loads python -c "import pypwsafe"

Development Setup Instructions

FIXME: Fill this in

FAQ

Where can I find details on the Password Safe file format?

The format spec is kept in the Password Safe project's SVN repo. Go to the password safe code base and check in /pwsafe/pwsafe/docs/formatV3.txt. As of today, it can be found here

TODO

  1. Add support for using a pure-python TwoFish algorithm if mcrypt doesn't work. http://code.google.com/p/python-keysafe/source/browse/crypto/twofish.py http://www.bjrn.se/code/twofishpy.txt

Release files for pypwsafev3 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pypwsafev3 0.0.3
File Size Uploaded
pypwsafev3-0.0.3.tar.gz 34.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pypwsafev3 0.0.3
File Interpreter ABI Platform
pypwsafev3-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 69.6 kB

Release files / pypwsafev3-0.0.3.tar.gz

Download URL pypwsafev3-0.0.3.tar.gz
Size 34.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f0a71d4f6211638f58f1489b36089830d96a599cb6dd0f8d769750f8a74a61a7
BLAKE2b-256 checksum
How to use checksums
7650523d3018065d812cb23683129c41374abe1cbf65ba4f69404e06dbaa7d9b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0

Release files / pypwsafev3-0.0.3-py3-none-any.whl

Download URL pypwsafev3-0.0.3-py3-none-any.whl
Size 35.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f37019a2e28bb1df31296f7dd07dbb6316793cd3cb7f0a5fc2a4a088fef243be
BLAKE2b-256 checksum
How to use checksums
9bde7a0c71dd4daeddca74154dd509525b54b5743628729b903f630f7231dfb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page