tools.universal_decoder module

Universal Decoder tool.

Automatic detection and decoding of text encoded in various formats including hex, binary, base64, base32, base58, base62, ASCII85, URL encoding, HTML entities, ROT13, ROT47, and Morse code.

tools.universal_decoder.decode_hexadecimal(text)[source]

Decode hexadecimal.

Parameters:

text (str) – Text content.

Returns:

The result.

Return type:

Optional[str]

tools.universal_decoder.decode_binary(text)[source]

Decode binary.

Parameters:

text (str) – Text content.

Returns:

The result.

Return type:

Optional[str]

tools.universal_decoder.decode_base64(text)[source]

Decode base64.

Parameters:

text (str) – Text content.

Returns:

The result.

Return type:

Optional[str]

tools.universal_decoder.decode_base32(text)[source]

Decode base32.

Parameters:

text (str) – Text content.

Returns:

The result.

Return type:

Optional[str]

tools.universal_decoder.decode_base58(text)[source]

Decode base58.

Parameters:

text (str) – Text content.

Returns:

The result.

Return type:

Optional[str]

tools.universal_decoder.decode_base62(text)[source]

Decode base62.

Parameters:

text (str) – Text content.

Returns:

The result.

Return type:

Optional[str]

tools.universal_decoder.decode_ascii85(text)[source]

Decode ascii85.

Parameters:

text (str) – Text content.

Returns:

The result.

Return type:

Optional[str]

tools.universal_decoder.decode_url_encoding(text)[source]

Decode url encoding.

Parameters:

text (str) – Text content.

Returns:

The result.

Return type:

Optional[str]

tools.universal_decoder.decode_html_entities(text)[source]

Decode html entities.

Parameters:

text (str) – Text content.

Returns:

The result.

Return type:

Optional[str]

tools.universal_decoder.decode_rot13(text)[source]

Decode rot13.

Parameters:

text (str) – Text content.

Returns:

The result.

Return type:

Optional[str]

tools.universal_decoder.decode_rot47(text)[source]

Decode rot47.

Parameters:

text (str) – Text content.

Returns:

The result.

Return type:

Optional[str]

tools.universal_decoder.decode_morse(text)[source]

Decode morse.

Parameters:

text (str) – Text content.

Returns:

The result.

Return type:

Optional[str]

tools.universal_decoder.is_readable_text(text, threshold=0.7)[source]

Check whether is readable text.

Parameters:
  • text (str) – Text content.

  • threshold (float) – The threshold value.

Returns:

True on success, False otherwise.

Return type:

bool

tools.universal_decoder.score_decoding(decoded)[source]

Score decoding.

Parameters:

decoded (str) – The decoded value.

Returns:

The result.

Return type:

float

tools.universal_decoder.detect_encoding_type(text)[source]

Detect encoding type.

Parameters:

text (str) – Text content.

Returns:

The result.

Return type:

List[str]