# crypt - pydoc - phpman

- Encrypt a file:
  `crypt -e fileToEncrypt outputFile`
- Decrypt a file:
  `crypt -d fileToDecrypt outputFile`

*Source: cheat.sh*

---

Help on module crypt:

## NAME
    crypt - Wrapper to the POSIX crypt library call and associated functionality.

## MODULE REFERENCE
    <https://docs.python.org/3.10/library/crypt.html>

    The following documentation is automatically generated from the Python
    source files.  It may be incomplete, incorrect or include features that
    are considered implementation detail and may vary between Python
    implementations.  When in doubt, consult the module reference at the
    location listed above.

## FUNCTIONS
### crypt
        Return a string representing the one-way hash of a password, with a salt
        prepended.

        If ``salt`` is not specified or is ``None``, the strongest
        available method will be selected and a salt generated.  Otherwise,
        ``salt`` may be one of the ``crypt.METHOD_*`` values, or a string as
        returned by ``crypt.mksalt()``.

### mksalt
        Generate a salt for the specified method.

        If not specified, the strongest available method will be used.

## DATA
    METHOD_BLOWFISH = <crypt.METHOD_BLOWFISH>
    METHOD_CRYPT = <crypt.METHOD_CRYPT>
    METHOD_MD5 = <crypt.METHOD_MD5>
    METHOD_SHA256 = <crypt.METHOD_SHA256>
    METHOD_SHA512 = <crypt.METHOD_SHA512>
    methods = [<crypt.METHOD_SHA512>, <crypt.METHOD_SHA256>, <crypt.METHOD...

## FILE
    /usr/lib/python3.10/crypt.py


