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