Giter Club home page Giter Club logo

basicutils's Introduction

Helper Utils

Welcome to the Helper Utils repository! This repository is a collection of different utilities developed to automate and simplify routine processes in your everyday coding life.

Getting Started

To get started, simply clone this repository and import the necessary functions from the modules. Functions are organized by their use-case, making it easy to find the utility you need.

Utilities

Currently, the repository includes utilities for encoding and decoding text, converting strings to bits and vice versa, performing bitwise XOR operation, finding modular inverse, and sanitizing input. Here are some examples:

Encoding and Decoding Utilities

The encoder.py module provides functions for base64 and URL encoding and decoding:

  • b64_e(text): This function takes a string as an argument and returns the base64 encoded version of the string.
  • b64_d(text): This function takes a base64 encoded string as an argument and returns the original string.
  • url_e(text): This function takes a string as an argument and returns the URL encoded version of the string.
  • url_d(text): This function takes a URL encoded string as an argument and returns the original string.

Bitwise Operations and Conversion Utilities

The bit_strings.py and bit_xor.py modules provide functions for converting strings to bits and vice versa, and performing bitwise XOR operation:

  • string_to_bits(string): This function converts a string into a sequence of bits.
  • bits_to_string(bits): This function converts a sequence of bits into the corresponding string.
  • xor_bits(bits1, bits2): This function performs bitwise XOR operation on two bit strings of the same length.

Extended Euclidean Algorithm Utility

The extended_euclidean_find_inverse.py module provides a function for finding modular inverse using Extended Euclidean Algorithm:

  • findModInverse(a, m): This function finds the modular inverse of a number 'a' mod 'm'.

Input Sanitization Utility

The input_sanitization.py module provides a function for sanitizing input:

  • sanitize_input(input_string): This function removes everything from the input string but capital English letters, numbers, and some special characters(!,?,.).

Future Improvements

While the repository currently contains utilities for encoding and decoding, bit operations, finding modular inverse, and input sanitization, we plan to add more utilities for different purposes soon.

Stay tuned for updates and feel free to contribute!

basicutils's People

Contributors

ilya-smut avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.