Skip to main content

Id generation, hash and encryption

Project description

Id generation, hash and encryption

Install and import

  • For install CodeTool : pip install codetool

  • For import CodeTool : import codetool

Functions

CodeTool reunites the indecode, hashint and secure_id as well as new functions for generating new types of ID, new methods of encryption, new hash algoryths and more.

CodeTool provide all this functions :

  • mix(lenght:int=30) : return a mix of caracters with the lenght provided, default to 30, in the form of a string

  • universal_id1() : return a new type of unique identifier in the form of a string

  • generate_key() : return a new type of key in the form of list

  • code(text:str,key:list=generate_key()) : need a text to encod in the form of a string and a key generate by the generate_key() function, return the incoded text

  • decode(text:str,key:list) : need the encoded text generate by the code() function and the key to decrypt it, return the decoded text

Class

CodeTool provide all this class:

  • CeasarCode(key,list) : allow you to encode text by providing an alphabet in the form of list in the list argument and a key in the form of int in the key argument

Exceptions

CodeTool can raise all this errors :

  • LenghtError

  • KeyLenghtError

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

codetool-0.21-py3-none-any.whl (5.1 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