Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⚠️ Ciphey is being deprecated ⚠️ #764

Open
bee-san opened this issue Dec 26, 2022 · 2 comments
Open

⚠️ Ciphey is being deprecated ⚠️ #764

bee-san opened this issue Dec 26, 2022 · 2 comments
Labels
maintenance Something that doesn't affect the user directly WARNING

Comments

@bee-san
Copy link
Member

bee-san commented Dec 26, 2022

Hey 👋🏻

We are currently in the middle of writing out a new automated decoding tool in Rust called Ares:
https://github.com/bee-san/Ares

As such, we do not have much time to spend on Ciphey 🙇🏻

We fully intend to replace Ciphey with Ares in the future, but for now Ciphey will stay and some PRs will be merged :)

Please note that Ares does not support all of the features of Ciphey currently, we recommend using both and if you're really stuck coming to our Discord channel #coded-messages for help!
https://discord.gg/MfuMzEVjtK

@liudonghua123
Copy link

liudonghua123 commented Nov 3, 2023

Well, If you still want to use ciphey on your new python. I managed to build CipheyCore for python 3.9, 3.10, 3.11, see https://github.com/liudonghua123/CipheyCore/releases/tag/0.3.2.

Because ciphey and it's dependence cipheydists is py3-none-any package which do not need to rebuild on new python environment.

And one exception is PyYAML dependence is locked to version >=5.3.1,<6.0.0 which is not available for new python, see https://pypi.org/project/PyYAML/5.4.1/#files and https://pypi.org/project/PyYAML/6.0.1/#files. So I removed the version lock in ciphey-5.14.0-py3-none-any.whl/ciphey-5.14.0.dist-info/METADATA.

Details
 Liu.D.H   build    master ≡    where python                                               in cmd at 23:47:16
C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python311\python.exe
C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\python.exe
C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python312\python.exe
C:\msys64\mingw64\bin\python.exe
D:\apps\mambaforge\python.exe

 Liu.D.H   build    master ≡    where pip                                                  in cmd at 00:07:49
C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python311\Scripts\pip.exe
C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\Scripts\pip.exe
C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python312\Scripts\pip.exe
D:\apps\mambaforge\Scripts\pip.exe

 Liu.D.H   build    master ≡    python -V                                                  in cmd at 00:17:25
Python 3.11.2

 Liu.D.H   build    master ≡   

 Liu.D.H   build    master ≡    pip install D:\Downloads\cipheycore-0.3.2-cp311-cp311-win_amd64.whl
Processing d:\downloads\cipheycore-0.3.2-cp311-cp311-win_amd64.whl
Installing collected packages: cipheycore
Successfully installed cipheycore-0.3.2

 Liu.D.H   build    master ≡    pip install ciphey                                         in cmd at 00:08:12
Collecting ciphey
  Using cached ciphey-5.14.0-py3-none-any.whl (90 kB)
Requirement already satisfied: appdirs<2.0.0,>=1.4.4 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from ciphey) (1.4.4)
Collecting base58<3.0.0,>=2.0.1 (from ciphey)
  Using cached base58-2.1.1-py3-none-any.whl (5.6 kB)
Collecting base91<2.0.0,>=1.0.1 (from ciphey)
  Using cached base91-1.0.1-py3-none-any.whl (3.4 kB)
Requirement already satisfied: cipheycore<0.4.0,>=0.3.2 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from ciphey) (0.3.2)
Collecting cipheydists<0.4.0,>=0.3.34 (from ciphey)
  Using cached cipheydists-0.3.35-py3-none-any.whl (11.6 MB)
Requirement already satisfied: click<9.0.0,>=7.1.2 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from ciphey) (8.1.3)
Collecting flake8<4.0.0,>=3.8.4 (from ciphey)
  Using cached flake8-3.9.2-py2.py3-none-any.whl (73 kB)
Collecting loguru<0.6.0,>=0.5.3 (from ciphey)
  Using cached loguru-0.5.3-py3-none-any.whl (57 kB)
Collecting mock<5.0.0,>=4.0.3 (from ciphey)
  Using cached mock-4.0.3-py3-none-any.whl (28 kB)
Collecting pybase62<0.5.0,>=0.4.3 (from ciphey)
  Using cached pybase62-0.4.3-py3-none-any.whl (5.0 kB)
Requirement already satisfied: pylint<3.0.0,>=2.6.0 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from ciphey) (2.15.8)
Collecting pywhat<1.2.0,>=0.2.5 (from ciphey)
  Using cached pywhat-1.1.0-py3-none-any.whl (32 kB)
Collecting pyyaml<6.0.0,>=5.3.1 (from ciphey)
  Downloading PyYAML-5.4.1.tar.gz (175 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 175.1/175.1 kB 19.5 kB/s eta 0:00:00
  Installing build dependencies ... error
  error: subprocess-exited-with-error

  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Collecting setuptools
        Downloading setuptools-68.2.2-py3-none-any.whl.metadata (6.3 kB)
      Collecting wheel
        Downloading wheel-0.41.3-py3-none-any.whl.metadata (2.2 kB)
      ERROR: Could not find a version that satisfies the requirement Cython (from versions: none)
      ERROR: No matching distribution found for Cython
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

 Liu.D.H   build    master ≡    pip install D:\Downloads\ciphey-5.14.0-py3-none-any.whl    in cmd at 00:11:24
Processing d:\downloads\ciphey-5.14.0-py3-none-any.whl
Requirement already satisfied: appdirs<2.0.0,>=1.4.4 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from ciphey==5.14.0) (1.4.4)
Collecting base58<3.0.0,>=2.0.1 (from ciphey==5.14.0)
  Using cached base58-2.1.1-py3-none-any.whl (5.6 kB)
Collecting base91<2.0.0,>=1.0.1 (from ciphey==5.14.0)
  Using cached base91-1.0.1-py3-none-any.whl (3.4 kB)
Requirement already satisfied: cipheycore<0.4.0,>=0.3.2 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from ciphey==5.14.0) (0.3.2)
Collecting cipheydists<0.4.0,>=0.3.34 (from ciphey==5.14.0)
  Using cached cipheydists-0.3.35-py3-none-any.whl (11.6 MB)
Requirement already satisfied: click<9.0.0,>=7.1.2 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from ciphey==5.14.0) (8.1.3)
Collecting flake8<4.0.0,>=3.8.4 (from ciphey==5.14.0)
  Using cached flake8-3.9.2-py2.py3-none-any.whl (73 kB)
Collecting loguru<0.6.0,>=0.5.3 (from ciphey==5.14.0)
  Using cached loguru-0.5.3-py3-none-any.whl (57 kB)
Collecting mock<5.0.0,>=4.0.3 (from ciphey==5.14.0)
  Using cached mock-4.0.3-py3-none-any.whl (28 kB)
Collecting pybase62<0.5.0,>=0.4.3 (from ciphey==5.14.0)
  Using cached pybase62-0.4.3-py3-none-any.whl (5.0 kB)
Requirement already satisfied: pylint<3.0.0,>=2.6.0 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from ciphey==5.14.0) (2.15.8)
Collecting pywhat<1.2.0,>=0.2.5 (from ciphey==5.14.0)
  Using cached pywhat-1.1.0-py3-none-any.whl (32 kB)
Requirement already satisfied: pyyaml in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from ciphey==5.14.0) (6.0)
Collecting rich<11,>=4 (from ciphey==5.14.0)
  Using cached rich-10.16.2-py3-none-any.whl (214 kB)
Requirement already satisfied: colorama in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from click<9.0.0,>=7.1.2->ciphey==5.14.0) (0.4.6)
Collecting pyflakes<2.4.0,>=2.3.0 (from flake8<4.0.0,>=3.8.4->ciphey==5.14.0)
  Using cached pyflakes-2.3.1-py2.py3-none-any.whl (68 kB)
Collecting pycodestyle<2.8.0,>=2.7.0 (from flake8<4.0.0,>=3.8.4->ciphey==5.14.0)
  Using cached pycodestyle-2.7.0-py2.py3-none-any.whl (41 kB)
Collecting mccabe<0.7.0,>=0.6.0 (from flake8<4.0.0,>=3.8.4->ciphey==5.14.0)
  Using cached mccabe-0.6.1-py2.py3-none-any.whl (8.6 kB)
Requirement already satisfied: win32-setctime>=1.0.0 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from loguru<0.6.0,>=0.5.3->ciphey==5.14.0) (1.1.0)
Requirement already satisfied: dill>=0.2 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pylint<3.0.0,>=2.6.0->ciphey==5.14.0) (0.3.6)
Requirement already satisfied: platformdirs>=2.2.0 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pylint<3.0.0,>=2.6.0->ciphey==5.14.0) (3.11.0)
Requirement already satisfied: astroid<=2.14.0-dev0,>=2.12.13 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pylint<3.0.0,>=2.6.0->ciphey==5.14.0) (2.12.13)
Requirement already satisfied: isort<6,>=4.2.5 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pylint<3.0.0,>=2.6.0->ciphey==5.14.0) (5.10.1)
Requirement already satisfied: tomlkit>=0.10.1 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pylint<3.0.0,>=2.6.0->ciphey==5.14.0) (0.11.6)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/click/
Collecting click<9.0.0,>=7.1.2 (from ciphey==5.14.0)
  Using cached click-7.1.2-py2.py3-none-any.whl (82 kB)
Collecting langdetect<2.0.0,>=1.0.8 (from pywhat<1.2.0,>=0.2.5->ciphey==5.14.0)
  Using cached langdetect-1.0.9.tar.gz (981 kB)
  Preparing metadata (setup.py) ... done
Collecting name_that_hash<2.0.0,>=1.7.0 (from pywhat<1.2.0,>=0.2.5->ciphey==5.14.0)
  Using cached name_that_hash-1.11.0-py3-none-any.whl (30 kB)
Requirement already satisfied: commonmark<0.10.0,>=0.9.0 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from rich<11,>=4->ciphey==5.14.0) (0.9.1)
Requirement already satisfied: pygments<3.0.0,>=2.6.0 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from rich<11,>=4->ciphey==5.14.0) (2.14.0)
Requirement already satisfied: lazy-object-proxy>=1.4.0 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from astroid<=2.14.0-dev0,>=2.12.13->pylint<3.0.0,>=2.6.0->ciphey==5.14.0) (1.8.0)
Requirement already satisfied: wrapt<2,>=1.14 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from astroid<=2.14.0-dev0,>=2.12.13->pylint<3.0.0,>=2.6.0->ciphey==5.14.0) (1.14.1)
Requirement already satisfied: six in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from langdetect<2.0.0,>=1.0.8->pywhat<1.2.0,>=0.2.5->ciphey==5.14.0) (1.16.0)
INFO: pip is looking at multiple versions of name-that-hash to determine which version is compatible with other requirements. This could take a while.
  Using cached name_that_hash-1.10.0-py3-none-any.whl (29 kB)
Building wheels for collected packages: langdetect
  Building wheel for langdetect (setup.py) ... done
  Created wheel for langdetect: filename=langdetect-1.0.9-py3-none-any.whl size=993253 sha256=e03cb7c4028ff819bffa0e46a29f363ad7f80e475fef18c7f8d0aa7ac550fe8f
  Stored in directory: c:\users\liu.d.h\appdata\local\pip\cache\wheels\0a\f2\b2\e5ca405801e05eb7c8ed5b3b4bcf1fcabcd6272c167640072e
Successfully built langdetect
Installing collected packages: pybase62, mccabe, base91, rich, pyflakes, pycodestyle, mock, loguru, langdetect, click, cipheydists, base58, name_that_hash, flake8, pywhat, ciphey
  Attempting uninstall: mccabe
    Found existing installation: mccabe 0.7.0
    Uninstalling mccabe-0.7.0:
      Successfully uninstalled mccabe-0.7.0
  Attempting uninstall: rich
    Found existing installation: rich 13.6.0
    Uninstalling rich-13.6.0:
      Successfully uninstalled rich-13.6.0
  Attempting uninstall: pyflakes
    Found existing installation: pyflakes 2.5.0
    Uninstalling pyflakes-2.5.0:
      Successfully uninstalled pyflakes-2.5.0
  Attempting uninstall: pycodestyle
    Found existing installation: pycodestyle 2.9.1
    Uninstalling pycodestyle-2.9.1:
      Successfully uninstalled pycodestyle-2.9.1
  Attempting uninstall: loguru
    Found existing installation: loguru 0.6.0
    Uninstalling loguru-0.6.0:
      Successfully uninstalled loguru-0.6.0
  Attempting uninstall: click
    Found existing installation: click 8.1.3
    Uninstalling click-8.1.3:
      Successfully uninstalled click-8.1.3
  Attempting uninstall: flake8
    Found existing installation: flake8 5.0.4
    Uninstalling flake8-5.0.4:
      Successfully uninstalled flake8-5.0.4
Successfully installed base58-2.1.1 base91-1.0.1 ciphey-5.14.0 cipheydists-0.3.35 click-7.1.2 flake8-3.9.2 langdetect-1.0.9 loguru-0.5.3 mccabe-0.6.1 mock-4.0.3 name_that_hash-1.10.0 pybase62-0.4.3 pycodestyle-2.7.0 pyflakes-2.3.1 pywhat-1.1.0 rich-10.16.2

 Liu.D.H   build    master ≡   

ciphey_and_cipheycore_whls.zip

All work is just for fun. Use at your own risk.

Recommend to use the new https://github.com/bee-san/Ares.

I tried to run ciphey with some error importerror: DLL load failed while importing the specified module could not be found. related to ciphey_core_py.

So I try to dig into the C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python311\Lib\site-packages\cipheycore\_ciphey_core_py.pyd and found the ImportDescriptor is python312.dll which maybe wrong. I changed one bit of the pyd file. And now it worked for me.

 Liu.D.H   ~    ciphey --help                                                                 in cmd at 01:32:32Usage: ciphey [OPTIONS] [TEXT_STDIN]

  Ciphey - Automated Decryption Tool

  Documentation: https://github.com/Ciphey/Ciphey/wiki

  Discord (support here, we're online most of the day):
  https://discord.ciphey.online/

  GitHub: https://github.com/ciphey/ciphey

  Ciphey is an automated decryption tool using smart artificial intelligence
  and natural language processing. Input encrypted text, get the decrypted
  text back.

  Examples:

      Basic Usage: ciphey -t "aGVsbG8gbXkgbmFtZSBpcyBiZWU="

Options:
  -t, --text TEXT            The ciphertext you want to decrypt.
  -q, --quiet                Decrease verbosity
  -g, --greppable            Only print the answer (useful for grep)
  -v, --verbose
  -C, --checker TEXT         Use the given checker
  -c, --config TEXT          Uses the given config file. Defaults to
                             appdirs.user_config_dir('ciphey',
                             'ciphey')/'config.yml'

  -w, --wordlist TEXT        Uses the given wordlist
  -p, --param TEXT           Passes a parameter to the language checker
  -l, --list-params BOOLEAN  List the parameters of the selected module
  --searcher TEXT            Select the searching algorithm to use
  -b, --bytes                Forces ciphey to use binary mode for the input
  --default-dist TEXT        Sets the default character/byte distribution
  -m, --module PATH          Adds a module from the given path
  -A, --appdirs              Print the location of where Ciphey wants the
                             settings file to be

  -f, --file FILENAME
  --help                     Show this message and exit.

 Liu.D.H   ~    ciphey -t "aGVsbG8gbXkgbmFtZSBpcyBiZWU="                                                   in cmd at 01:33:05
Possible plaintext: 'hello my name is bee' (y/N): y
╭──────────────────────────────────────────╮
│ Formats used:                            │
│    base64                                │
│    utf8Plaintext: "hello my name is bee" │
╰──────────────────────────────────────────╯

 Liu.D.H   ~   

I think maybe it's related to the CI environment but not sure. I also checked in _ciphey_core_py.pyd in cipheycore-0.3.2-cp310-cp310-win_amd64.whl, it's the same problems.

NEED HELP ABOUT THIS STRANGE PROBLEM!!!

image

@liudonghua123
Copy link

liudonghua123 commented Nov 7, 2023

I have fixed pythonXY.dll dependence error, feel free to download and try it.

All the cipheycore wheels for python 3.9-3.12 for windows, linux and macos are available on https://github.com/liudonghua123/CipheyCore/releases/.

Here are the steps on how to install ciphey on Python 3.9-3.12.

  1. Download ciphey-5.14.0-py3-none-any.whl (or you can download from PyPI and update ciphey-5.14.0-py3-none-any.whl/ciphey-5.14.0.dist-info/METADATA as followings) and appropriate cipheycore wheels from liudonghua123/CipheyCore. For instance, download cipheycore-0.3.2-cp311-cp311-win_amd64.whl if you are using python 3.11 on Windows.
  2. Install cipheycore and ciphey in sequence via pip install <cipheycore/ciphey>.whl.
  3. Test via ciphey --help
  4. Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Something that doesn't affect the user directly WARNING
Projects
None yet
Development

No branches or pull requests

2 participants