ciphey -t "encrypted text here" -q
如果你需要在Python中使用Ciphey,请这样使用:
from ciphey.__main__ import main, main_decrypt, make_default_configmain_decrypt(make_default_config("SGVsbG8gbXkgbmFtZSBpcyBiZWUgYW5kIEkgbGlrZSBkb2cgYW5kIGFwcGxlIGFuZCB0cmVl"))# >> Hello my name is bee and I like dog and apple and tree
运行后会输出如下的结果: 效果还是相当不错的,如果你不想输出概率表,只想要解密内容,代码需要这么写:
from ciphey.__main__ import main, main_decrypt, make_default_configconfig = make_default_config("SGVsbG8gbXkgbmFtZSBpcyBiZWUgYW5kIEkgbGlrZSBkb2cgYW5kIGFwcGxlIGFuZCB0cmVl")config["grep"] = Truemain_decrypt(config)# >> Hello my name is bee and I like dog and apple and tree
Ciphey 支持解密的密文和编码多达51种,下面列出一些基本的选项 基本密码:
Caesar CipherROT47 (up to ROT94 with the ROT47 alphabet)ASCII shift (up to ROT127 with the full ASCII alphabet)Vigenère CipherAffine CipherBinary Substitution Cipher (XY-Cipher)Baconian Cipher (both variants)SoundexTransposition CipherPig Latin
现代密码学:
Repeating-key XORSingle XOR
编码:
Base32Base64Z85 (release candidate stage)Base65536 (release candidate stage)ASCIIReversed textMorse CodeDNA codons (release candidate stage)AtbashStandard Galactic Alphabet (aka Minecraft Enchanting Language)LeetspeakBaudot ITA2URL encodingSMS Multi-tapDMTF (release candidate stage)UUencodeBraille (Grade 1)......
Ciphey 的功能不仅于本文介绍的这些,本文所介绍的只是冰山一角,它还可以添加属于你自己的解码器。