Plex Media Center for OS X Leopard

5.5.2. Hash — Hash generation

The Hash module contains a number of functions that can be used to generate many different types of hash.

This module defines the following functions:

Hash.MD5(data)

Generates a MD5 hash of the given data.

Parameter:data – The data to use when generating the hash
Return type:str
Hash.SHA1(data)

Generates a SHA1 hash of the given data.

Parameter:data – The data to use when generating the hash
Return type:str
Hash.SHA224(data)

Generates a SHA224 hash of the given data.

Parameter:data – The data to use when generating the hash
Return type:str
Hash.SHA256(data)

Generates a SHA256 hash of the given data.

Parameter:data – The data to use when generating the hash
Return type:str
Hash.SHA384(data)

Generates a SHA384 hash of the given data.

Parameter:data – The data to use when generating the hash
Return type:str
Hash.SHA512(data)

Generates a SHA512 hash of the given data.

Parameter:data – The data to use when generating the hash
Return type:str
Hash.CRC32(data)

Generates a CRC32 hash of the given data.

Parameter:data – The data to use when generating the hash
Return type:str

Previous topic

5.5.1. String — Manipulates strings

Next topic

5.5.3. Datetime — Creates and interacts with date & time objects