Skip to main content

NHXCrypt is a module that uses NHXCrypt-8--128 Algorithms to encrypt and decrypt the files using a single key with a 'mathless cryptography' technique.

Project description

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 NHXHide.py

or in Linux or MacOS, install the tool on path as follows:

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

and afterward use the tool by just typing NHXCrypt in any directory.

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.

$ NHXHide <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 name to encrypt>, <file name to output the encrypted data [overwritten if exists]>, verbose=<True/False [default=False]>)

For Encrypting, type:

handler.encrypt()

To Decrypt, type:

handler.decrypt()

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 status codes:

Status Code Meaning
0 Operation Successful
404 Data File not Found
500 Invalid Mode
505 No Key provided
600 Encrypted Text corrupted or wrong mode selected
606 Incorrect Mode/Password caused crash during value alteration

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

NHXCrypt-1.0.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

NHXCrypt-1.0.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file NHXCrypt-1.0.1.tar.gz.

File metadata

  • Download URL: NHXCrypt-1.0.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.2

File hashes

Hashes for NHXCrypt-1.0.1.tar.gz
Algorithm Hash digest
SHA256 73cf03268a3187af0959763ee1d90bad399416eee35298fd4b55df2a144d295f
MD5 6b76b7585f8d1d469d7f590fbc72b018
BLAKE2b-256 16edeb0991d7a807144b0407f9fc0b41ede8eb691aa8f9ef9df0991a72627f98

See more details on using hashes here.

File details

Details for the file NHXCrypt-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: NHXCrypt-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.2

File hashes

Hashes for NHXCrypt-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1130d14599cbdb885e4d7939ff475c1909ce14dee3c6635410d5430bc27eb1c3
MD5 6ef0930d2b774924fc83bdfba4654bd6
BLAKE2b-256 15b5af1e4b763dd3dd1e093d8be6a03b5c7a07a0f1b80d8f4fd4be9dabfba005

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page