1.4. Module cclib

The py_cerebro.cclib module contains supplementary functions of hash and bit flags processing.

Functions

py_cerebro.cclib.has_flag(flags, flag)[source]
Parameters:
  • flags (int) – flag values.
  • flag (int) – flag.
Returns:

“True” if the flag is set, otherwise - “False”.

Return type:

bool

Checks if the flag is set in flags.

py_cerebro.cclib.hash16_64(b16_str)[source]
Parameters:b16_str (string) – hash in base16 format
Returns:hash in base64 format
Return type:string

Converts hash string from base16 to base64 format.

py_cerebro.cclib.hash64_16(b64_str)[source]
Parameters:b64_str (string) – hash in base64 format
Returns:hash in base16 format
Return type:string

Converts hash string from base64 to base16 format.