gocept.pseudonymize provides single functions for pseudonymization of
various data types. Each function takes the value, which should be
pseudonymized, and a secret, which is passed as a salt to the
crypt module. If secret and value do not change the
pseudonymize function returns the exact same result when called again:

The result has always the same string lenth as the input. But there is no
guaranty that it is still valid in the domain of the input value. For
example the checksum of the pseudonymized IBAN is not correct.

This package is tested to be compatible with Python version 2.7 and 3.3.

Bugfix: .text pseudonymizer now works as expected for texts longer
than 11 bytes. Previously it returned an 11 byte result for longer texts
ignoring the part after the 11th byte (default behavior of the used
crypt implementation). (#1296)

Fixed handling of Extended crypt (signalled by starting the salt with an
underscore): Salt is now correctly stripped from result. Caution: This
leads to different pseudonymization results when using a secret starting
with underscore than in version 0.3.