前言

Ciphey 是一個使用自然語言處理和人工智能的全自動解密/解碼/破解工具,
簡單地來講,你只需要輸入加密文本,它就能給你回傳解密文本,就是這么牛逼,
有了Ciphey,你根本不需要知道你的密文是哪種型別的加密,你只知道它是加密的,那么Ciphey就能在3秒甚至更短的時間內給
你解密,回傳你想要的大部分密文的答案,
下面就給大家介紹 Ciphey 的實戰使用教程,

1.準備
請選擇以下任一種方式輸入命令安裝依賴:
- Windows 環境 打開 Cmd (開始-運行-CMD),
- MacOS 環境 打開 Terminal (command+空格輸入Terminal),
- 如果你用的是 VSCode編輯器 或 Pycharm,可以直接使用界面下方的Terminal.
pip install -U ciphey

2.Ciphey 基本使用
有3種方法可以運行 Ciphey:
- 檔案輸入:
ciphey -f encrypted.txt # 或 python -m ciphey -f encrypted.txt
2.不規范的方法:
ciphey -- "Encrypted input" # 或 python -m ciphey -- "Encrypted input"
3.正常方式
Python學習交流Q群:906715085### ciphey -t "Encrypted input" # 或 python -m ciphey -t "Encrypted input"
如下圖所示:

要去除進度條、概率表和所有噪音,請使用安靜模式:
ciphey -t "encrypted text here" -q

3.在Python中呼叫Ciphey
如果你需要在Python中使用Ciphey,請這樣使用:
Python學習交流Q群:906715085### # Python實用寶典 # 2021/07/19 from ciphey.__main__ import main, main_decrypt, make_default_config main_decrypt(make_default_config("SGVsbG8gbXkgbmFtZSBpcyBiZWUgYW5kIEkgbGlrZSBkb2cgYW5kIGFwcGxlIGFuZCB0cmVl")) # >> Hello my name is bee and I like dog and apple and tree
運行后會輸出如下的結果:

效果還是相當不錯的,如果你不想輸出概率表,只想要解密內容,代碼需要這么寫:
# Python實用寶典 # 2021/07/19 from ciphey.__main__ import main, main_decrypt, make_default_config config = make_default_config("SGVsbG8gbXkgbmFtZSBpcyBiZWUgYW5kIEkgbGlrZSBkb2cgYW5kIGFwcGxlIGFuZCB0cmVl") config["grep"] = True main_decrypt(config) # >> Hello my name is bee and I like dog and apple and tree

非常Nice,你根本無需知道這是什么密文/編碼,

Ciphey 支持解密的密文和編碼多達51種,下面列出一些基本的選項
基本密碼:
Python學習交流Q群:906715085#### ?Caesar Cipher ?ROT47 (up to ROT94 with the ROT47 alphabet) ?ASCII shift (up to ROT127 with the full ASCII alphabet) ?Vigenère Cipher ?Affine Cipher ?Binary Substitution Cipher (XY-Cipher) ?Baconian Cipher (both variants) ?Soundex ?Transposition Cipher ?Pig Latin
現代密碼學:
?Repeating-key XOR
?Single XOR
編碼:
?Base32 ?Base64 ?Z85 (release candidate stage) ?Base65536 (release candidate stage) ?ASCII ?Reversed text ?Morse Code ?DNA codons (release candidate stage) ?Atbash ?Standard Galactic Alphabet (aka Minecraft Enchanting Language) ?Leetspeak ?Baudot ITA2 ?URL encoding ?SMS Multi-tap ?DMTF (release candidate stage) ?UUencode ?Braille (Grade 1) ?......
Ciphey 的功能不僅于本文介紹的這些,本文所介紹的只是冰山一角,它還可以添加屬于你自己的解碼器:
https://github.com/Ciphey/Ciphey/wiki/Adding-your-own-ciphers
如果要進一步地學習,你可以在上述 Ciphey 的 Github Wiki 介紹中,查閱到更多的資料,進行更深層次的學習,
最后
解碼神奇在某些日常生活中使用也是比較頻繁的,希望這個教程對你有所幫助,聽說喜歡點贊的人都是最美的,下一章見,

轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/459511.html
標籤:Python
下一篇:python輸入和輸出
