Skip to main content

An encrypting algorithm

Project description

UIE

Universal Integer Encrypting algorithm.

USAGE

UIE.UIECoder(key, key_mode, result_mode, splitter, dict_)

  • key : str - A key for encryption\decryption.
  • key_mode : UIEKeyMode - A formatter for key.
  • result_mode : UIEResultMode - A result formatter.
Encryption:
UIECoder.encrypt(text)
  This method is returing encrypted data.

  text : str - Data for encrypt.
Decryption:
UIECoder.decrypt(encrypted)
  This method is returning decrypted data.

  encrypted - Encrypted data. (Type from result formatter)

UIE.modes

UIE.modes.UIEKeyMode
  Key modes:
    UIEKeyMode.uD - Default.
    UIEKeyMode.u1 - sha1 hash.
    UIEKeyMode.u256 - sha256 hash.
    UIEKeyMode.uM5 - md5 hash.
UIE.modes.UIEResultMode
  Result modes:
    UIEResultMode.uR - Raw.
    UIEResultMode.uB64 - Base64 encoding.

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

UIE-1.0.1.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

UIE-1.0.1-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

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