This project aims to provide a guide for how to install cryptography (python package) within Termux on Android devices.
Follow these steps to set up the cryptography in Termux on your Android device:
If you just want to install cryptography for programming. Install python-cryptography from pkg or apt. But if you have virtual environment or a project demands a specific version of cryptography, it fails. Then the only way is to follow the steps mentioned below 👇.
We have created a commands.sh file to streamline this process. Open termux and run this command:
curl -s https://raw.githubusercontent.com/dev-bittu/cryptography-in-termux/main/commands.sh | bash
OR if you want to install it manually, follow the steps mentioned below.
- Install Termux from fdroid (latest).
- Open the installed Termux application.
- Run the following command in Termux:
pkg update -y && pkg upgrade -y
- To install gcc-11, it is necessary to install tur-repo:
pkg install tur-repo -y
- Install gcc-11:
pkg install gcc-11 -y
Now, Install essential packages for cryptography:
pkg install git python3 rust binutils-is-llvm -y
export CXXFLAGS="-Wno-register"
export CFLAGS="-Wno-register"
- Install the Python cryptography library:
pip install cryptography
- You can now use the cryptography tools within Termux for various encryption and decryption tasks.
- Refer to the tool's documentation within the repository for guidelines on specific operations.
- Run the cryptography scripts using Python in Termux. python script_name.py
If you have any questions or need assistance, feel free to reach out to us or create an issue.