|
Peach ::
Transformers ::
crypto ::
Crypt ::
Class Crypt
|
|
Class Crypt
source code
UNIX style crypt. If no salt is specified will use first two chars of
data, ala pwd style.
This transform uses a pure Python implementation of the crypt function
which had been ported from an old C version. See fcrypt.py for licensing
differences.
From underlying docs:
Generate an encrypted hash from the passed password. If the
password is longer than eight characters, only the first eight will be
used.
The first two characters of the salt are used to modify the
encryption algorithm used to generate in the hash in one of 4096
different ways. The characters for the salt should be upper- and
lower-case letters A to Z, digits 0 to 9, '.' and '/'.
The returned hash begins with the two characters of the salt, and
should be passed as the salt to verify the password.