Package Crypto :: Package IO :: Module _PBES :: Class PBES1
[frames] | no frames]

Class PBES1

object --+
         |
        PBES1

Deprecated encryption scheme with password-based key derivation (originally defined in PKCS#5 v1.5, but still present in v2.0).

Instance Methods

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods
 
decrypt(data, passphrase)
Decrypt a piece of data using a passphrase and PBES1.
Properties

Inherited from object: __class__

Method Details

decrypt(data, passphrase)
Static Method

 

Decrypt a piece of data using a passphrase and PBES1.

The algorithm to use is automatically detected.

Parameters:
  • data (byte string) - The piece of data to decrypt.
  • passphrase (byte string) - The passphrase to use for decrypting the data.
Returns:
The decrypted data, as a binary string.