Package: encdecpy
encdecpyPython package to encode and decode strings using ciphers.Installation$ pip install encdecpyUsageThe package provides the following ciphers to encode and decode strings -Affine CipherAtbash CipherAutokey CipherBaconian CipherBase64 CipherBeaufort CipherCaesar CipherColumnar Transposition CipherPolybius Square CipherRail Fence CipherROT13 CipherRunning Key CipherSimple Substitution CipherVignere CipherAffine Cipherfromencdecpyimportaffineaffine.encode(string, a, b) - Returns the encoded string.affine.decode(string, a, b) - Returns the decoded string.a and b are integers between 0 and 25. a should be relatively prime to 26 and lie between 0 to 25 (both inclusive).Atbash Cipherfromencdecpyimportatbashatbash.encode(string) - Returns the encoded string.atbash.decode(string) - Returns the decoded string.Autokey Cipherfromencdecpyimportautokeyautokey.encode(string, key) - Returns the encoded string.autokey.decode(string, key) - Returns the decoded string.key is a string.Baconian Cipherfromencdecpyimportbaconianbaconian.encode(string) - Returns the encoded string.baconian.decode(string) - Returns the decoded string.Base64 Cipherfromencdecpyimportbase64base64.encode(string) - Returns the encoded string.base64.decode(string) - Returns the decoded string.Beaufort Cipherfromencdecpyimportbeaufortbeaufort.encode(string, key) - Returns the encoded string.beaufort.decode(string, key) - Returns the decoded string.key is a string.Caesar Cipherfromencdecpyimportcaesarcaesar.encode(string, key) - Returns the encoded string.caesar.decode(string, key) - Returns the decoded string.key is a whole number.Columnar Transposition Cipherfromencdecpyimportcolumnartranspositioncolumnartransposition.encode(string, key) - Returns the encoded string.columnartransposition.decode(string, key) - Returns the decoded string.key is a string and should contain unique characters between A-Z.Polybius Square Cipherfromencdecpyimportpolybiussquarepolybiussquare.encode(string, key) - Returns the encoded string.polybiussquare.decode(string, key) - Returns the decoded string.key is a string and should contain unique characters between a-z with one alphabet missing. Length of key should be 25. An example key - phqgiumeaylnofdxkrcvstzwb.Rail Fence Cipherfromencdecpyimportrailfencerailfence.encode(string, key) - Returns the encoded string.railfence.decode(string, key) - Returns the decoded string.key is a positive number denoting the number of rails.ROT13 Cipherfromencdecpyimportrot13rot13.encode(string) - Returns the encoded string.rot13.decode(string) - Returns the decoded string.Running Key Cipherfromencdecpyimportrunningkeyrunningkey.encode(string, key) - Returns the encoded string.runningkey.decode(string, key) - Returns the decoded string.key is a large string, usually a paragraph taken from a book.Simple Substitution Cipherfromencdecpyimportsimplesubstitutionsimplesubstitution.encode(string, key) - Returns the encoded string.simplesubstitution.decode(string, key) - Returns the decoded string.simplesubstitution.generate_random_key() - Returns a randomly generated key.key is a string containing a permutation of the alphabets (a-z), with no other characters. String should contain only unique characters.Vignere Cipherfromencdecpyimportvignerevignere.encode(string, key) - Returns the encoded string.vignere.decode(string, key) - Returns the decoded string.key is a string, usually a single word.