Skip to content

ddc/ddcCryptography

Repository files navigation

Few Utility Functions

License Python PyPi Build Status

Install

pip install ddcCryptography

Cryptography

from ddcCryptography import Cryptography
cp = Cryptography()
  • GENERATE_PRIVATE_KEY

    • Generates a private key to be used instead of default one
    • But keep in mind that this private key will be needed to decode further strings
      @staticmethod
      cp.generate_private_key() -> str
      
  • ENCODE

    • Encodes a given string
      cp.encode(str_to_encode: str) -> str
      
  • DECODE

    • Decodes a given string
      cp.decode(str_to_decode: str) -> str
      

Source Code

Build

poetry build

Run Tests

poe test

Get Coverage Report

poe coverage

License

Released under the MIT License

Buy me a cup of coffee

I know there are people out there that may want to donate just to show their appreciation. Thanks in advance!

paypal