Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- decoder = {"q": ["π ", "b"], "w": ["π ", "Κ"], "e": ["π΄", "Η"], "r": ["π ", "ΙΉ"], "t": ["π ", "Κ"], "y": ["π ", "Κ"], "u": ["π ", "n"], "i": ["πΈ", "α΄"], "o": ["πΎ", "o"], "p": ["πΏ", "d"], "a": ["π°", "Ι"], "s": ["π ", "s"], "d": ["π³", "p"], "f": ["π΅", "Ι"], "g": ["πΆ", "Ζ"], "h": ["π·", "Ι₯"], "j": ["πΉ", "ΙΎ"], "k": ["πΊ", "Κ"], "l": ["π»", "Λ₯"], "z": ["π ", "z"], "x": ["π ", "x"], "c": ["π²", "Ι"], "v": ["π ", "Κ"], "b": ["π±", "q"], "n": ["π½", "u"], "m": ["πΌ", "Ι―"]}
- translitor = {"ΠΉ": "j", "Ρ": "c", "Ρ": "u", "ΠΊ": "k", "Π΅": "e", "Π½": "n", "Π³": "g", "Ρ": "sh", "Ρ": "shch", "Π·": "z", "Ρ ": "h", "Ρ": "\"", "Ρ": "yo", "Ρ": "f", "Ρ": "y", "Π²": "v", "Π°": "a", "ΠΏ": "p", "Ρ": "r", "ΠΎ": "o", "Π»": "l", "Π΄": "d", "ΠΆ": "zh", "Ρ": "e", "Ρ": "ya", "Ρ": "ch", "Ρ": "s", "ΠΌ": "m", "ΠΈ": "i", "Ρ": "t", "Ρ": "'", "Π±": "b", "Ρ": "yu"}
- def encrypt(text, method=0):
- text = translit(text)
- return ''.join([decoder[i][method] if i in decoder.keys() else i for i in text.lower()])
- def translit(text):
- return "".join([translitor[i] if i in translitor.keys() else i for i in text.lower()])
- print(encrypt('Ρ Π΅Π±Π°Π», ΠΌΠ΅Π½Ρ sosali', method=0))
- # for i in range(len('qwertyuiopasdfghjklzxcvbnm')):
- # print(f"\"{'qwertyuiopasdfghjklzxcvbnm'[i]}\": [\"{'π π π΄π π π π πΈπΎπΏπ°π π³π΅πΆπ·πΉπΊπ»π π π²π π±π½πΌ'[i]}\", \"{'bΚΗΙΉΚΚnα΄odΙspΙΖΙ₯ΙΎΚΛ₯zxΙΚquΙ―'[i]}\"],")
Add Comment
Please, Sign In to add comment