Skip to content

Andrey-oss/Cryptographic_API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🔐 Cryptographic_API

Version: v1.2
Developer: @Andreyoss on Telegram

A simple Python-based library that provides a wide variety of encoding and decoding (encryption/decryption) algorithms for basic string and integer transformations.


🚀 Features

  • ROT13 cipher
  • String reversal
  • Static binary (int ↔ binary)
  • Binary encoding (str ↔ bin)
  • Random case converter
  • ASCII encoding/decoding
  • Static octal & hex conversions
  • Atbash cipher
  • Caesar cipher (basic & unstable)
  • Normal hex view (xxd-style)

Each feature is available for both encryption and decryption where applicable.


🛠 Requirements

  • Python 3.x

No external dependencies required.


📦 Usage

Import or run the file directly to access the methods via:

from cryptographic_api import encrypt, decrypt

Example

encrypt.rot13("hello")         # Output: 'uryyb'
decrypt.rot13("uryyb")         # Output: 'hello'

encrypt.static_binary(123)     # Output: '1111011'
decrypt.static_binary('1111011') # Output: 123

encrypt.reverse("ABC")         # Output: 'CBA'
decrypt.reverse("CBA")         # Output: 'ABC'

encrypt.ascii("hi")            # Output: '104 105'
decrypt.ascii("104 105")       # Output: 'hi'

🧪 Built-in Tests

Run automated encoding/decoding tests:

tests.static_binary_encrypt()
tests.static_binary_decrypt()
tests.binary_encrypt()
tests.binary_decrypt()
tests.reverse_encrypt()
tests.reverse_decrypt()
tests.rot13_encrypt()
tests.rot13_decrypt()
tests.random_case_encrypt()
tests.random_case_decrypt()
tests.ascii_encrypt()
tests.ascii_decrypt()
tests.static_hex_encrypt()
tests.static_hex_decrypt()
tests.static_octal_encrypt()
tests.static_octal_decrypt()
tests.normal_hex_encrypt()
tests.normal_hex_decrypt()

Each test prints input/output data for verification.


⚠️ Warnings

  • Caesar cipher is unstable and should not be used in production.
  • Random case transformation is non-reversible by design.
  • Some converters only work with integer inputs; exceptions are raised otherwise.

Note

No third-party libraries were used in the code; everything was done using algorithms. If there are any problems, write to issues

📄 License

This project is licensed under the MIT License


About

Cryptographic_API - Simple crypto API written on python3 without any libraries

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages