Ciphers#

This section of this documentation contains information on the classes of Ciphers.

class hashily.ciphers.A1Z26#

Bases: object

static decode(char: str)#

Returns the decrypted text for the A1Z26 cipher.

Parameters

char (str) โ€“ The text needs to be decrypted.

Returns

A1Z26_translated โ€“ The decrypted text.

Return type

str

static encode(char: str)#

Returns the A1Z26 translation of the text.

Parameters

char (str) โ€“ The text needs to be encrypted.

Returns

A1Z26_text โ€“ The encrypted text.

Return type

str

class hashily.ciphers.AtBash#

Bases: object

static decode(char: str)#

Returns the decrypted text for the AtBash cipher.

Parameters

char (str) โ€“ The text that needs to be decrypted.

Returns

Atbash_translated โ€“ The decrypted text.

Return type

str

static encode(char: str)#

Returns the AtBash translation of the text.

Parameters

char (str) โ€“ The text needs to be encrypted.

Returns

Atbash_text โ€“ The encrypted text.

Return type

str

class hashily.ciphers.Bacon#

Bases: object

static decode(char: str)#

Returns the decrypted text for the Bacon cipher.

Parameters

char (str) โ€“ The text needs to be decrypted.

Returns

Bacon_translated โ€“ The decrypted text.

Return type

str

static encode(char: str)#

Returns the Bacon translation of the text.

Parameters

char (str) โ€“ The text needs to be encrypted.

Returns

Bacon_text โ€“ The encrypted text.

Return type

str

class hashily.ciphers.Caesar#

Bases: object

static decode(char: str, shift: int = 3)#

Returns the decrypted text for the Caesar cipher.

Parameters
  • char (str) โ€“ The text needs to be decrypted.

  • shift (int, optional) โ€“ The shift that needs be applied to the text in order to decrypt it. Defaults to 3.

Returns

Caesar_translated โ€“ The decrypted text.

Return type

str

static encode(char: str, shift: int = 3)#

Returns the Caesar translation of the text.

Parameters
  • char (str) โ€“ The text needs to be encrypted.

  • shift (int, optional) โ€“ The shift that needs be applied to the text in order to encrypt it. Defaults to 3.

Returns

Caesar_text โ€“ The encrypted text.

Return type

str

class hashily.ciphers.MorseCode#

Bases: object

static decode(char: str)#

Returns the decrypted text for the MorseCode cipher.

Parameters

char (str) โ€“ The text needs to be decrypted.

Returns

MorseCode_translated โ€“ The decrypted text.

Return type

str

static encode(char: str)#

Returns the Morse Code translation of the text.

Parameters

char (str) โ€“ The text needs to be encrypted.

Returns

MorseCode_text โ€“ The encrypted text.

Return type

str

class hashily.ciphers.ROT13#

Bases: object

static decode(char: str)#

Returns the decrypted text for the AtBash cipher.

Parameters

char (str) โ€“ The text that needs to be decrypted.

Returns

ROT13_translated โ€“ The decrypted text.

Return type

str

static encode(char: str)#

Returns the ROT13 translation of the text.

Parameters

char (str) โ€“ The text needs to be encrypted.

Returns

ROT13_text โ€“ The encrypted text.

Return type

str