Skip to main content

NHXCrypt

NHXCrypt is a tool that uses NHXCrypt--8-128 Algorithms to encrypt and decrypt the files using a single key.

Main Features:

  • Support for reading and writing data from and to files (Encryption/Decryption)
  • Using 8, 16, 32, 62 and 128 characters to represent each character to make encryption effective.
  • Easy single key decryption

How NHXCrypt Encrypts/Decrypts data?

NHXCrypt uses simple techniques to make encryption possible. Each character in the data file is shuffled between random numbers in accordance with the location corrosponded by the key. Any ASCII character is acceptable as key. If the mode is other than 64 or 128, the key would also alter the original data in order to make it difficult for real data extraction.

Modes available

The suffix at the end of the name indicates the amount of characters a single character is going to be translated into. The modes include:

  • NHXCrypt-8
  • NHXCrypt-16
  • NHXCrypt-32
  • NHXCrypt-64
  • NHXCrypt-128

Installation

NHXCrypt requires Python 3+. To use it as a module, install NHXCrypt using pip:

pip3 install NHXCrypt

To use it as a tool, Download: NHXCrypt.py and use it via python3 shell:

$ python3 NHXCrypt.py

or in Linux or MacOS, directly as:

$ git clone https://www.github.com/chmuhammadsohaib/NHXCrypt
$ cd NHXCrypt
$ chmod +x NHXCrypt.py
$ ./NHXCrypt.py

Usage

Using NHXCrypt as a tool is simple. One argument is required, which is the image file to read or write data to, and the second optional argument is the file to read the data from, to be written to image, or the file for writng back the extracted data from the image file.

$ NHXCrypt.py <data file: input> <file name for output (overwritten if exixts)>

To use it as a module, simply use it as follows:

import NHXCrypt

handler = NHXCrypt.NHXCrypt(<key>, <mode>, <file handler opened in binary mode to read data/bytes to read>, <file handler opened in binary mode to write data/None to return data bytes with function [default=None]>, verbose=<True/False [default=False]>)

For Encrypting, type:

handler.encrypt()

To Decrypt, type:

handler.decrypt()

The functions return the data bytes on success when file write parameter is set to None. When verbose is set to True, an exception is raised rather than providing a status code. By default, a status code would be provided which can be used to raise exceptions in custom way, for example:

status = handler.decrypt()
if status == 0:
        print("Success")

There are 6 different statuses:

Status Code Meaning
0/Bytes Operation Successful
404 Data File not Found
500 Invalid Mode
505 No Key provided
600 Encrypted Text corrupted or wrong mode selected

Found NHXCrypt interesting? Go and Install it with just some simple steps!

Metadata

Release files for NHXCrypt 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for NHXCrypt 1.2.1
File Size Uploaded Provenance Actions
NHXCrypt-1.2.1.tar.gz 4.9 kB Without provenance Details for NHXCrypt-1.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for NHXCrypt 1.2.1
File Interpreter ABI Platform Actions
NHXCrypt-1.2.1-py3-none-any.whl Python 3 none any Details for NHXCrypt-1.2.1-py3-none-any.whl

Total release size: 9.9 kB

Release files / NHXCrypt-1.2.1.tar.gz

Download URL NHXCrypt-1.2.1.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
86d16b71d16d102714b01d120620026e26a9f4761e7842368cf399ce32cc7753
BLAKE2b-256 checksum
How to use checksums
ab4742cc3cc4113727c3189f2a04bca992621680adfd61bd33fb5409fe87e6f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

Release files / NHXCrypt-1.2.1-py3-none-any.whl

Download URL NHXCrypt-1.2.1-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5243e7044d06982b5d10019015f00fd5216edd43e7feda0f11584ef8a55b1a8e
BLAKE2b-256 checksum
How to use checksums
cf41ae0e7474f881eeb82c23274b986b0421e8c1f73c75298dfdc6ab3f080d75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

Security for NHXCrypt 1.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page