Skip to main content

A Simple Toolkit just for FUN

Project description

ichisaki

A Simple Toolkit just for FUN.

Requirements

Ensure NumPy (NumPy on GitHub) is installed already before installing ichisaki.

One of most simple ways to install NumPy is installing it with conda:

$ conda install numpy

Installation

Currently ichisaki can be installed with pip as following:

$ pip install ichisaki

or from source like other packages.

Importation

To access ichisaki and its functions import it in your Python code like this:

>>> import icsk

Functions

Crypto

Functions encrypt and decrypt text based on Hill Cipher[^1]:

  • Encrypt: icsk.crypto.encode(x: str) -> str
  • Decrypt: icsk.crypto.decode(x: str) -> str

For instance:

>>> icsk.crypto.encode("Sharing the World")
'icsk3isk9c3sci9kcs3ki9k3ics9sck3i9ks3ci9c3iks93s9cik3s9ickc3sik9ci3ks93kc9si3cik9sis3kc9s3kci9s3ick9si3ck9i3kcs94star'

>>> icsk.crypto.decode("icsk3isk9c3sci9kcs3ki9k3ics9sck3i9ks3ci9c3iks93s9cik3s9ickc3sik9ci3ks93kc9si3cik9sis3kc9s3kci9s3ick9si3ck9i3kcs94star")
'Sharing the World'

>>> icsk.crypto.encode("Tell Your World")
'icsk3ikc9s3cik9sic3ks9s3ick93ic9sk3ic9kss3cki93ik9scc3iks93i9csk3si9kc3sci9kk3ics93c9sik3i9csk4ever'

>>> icsk.crypto.decode("icsk3ikc9s3cik9sic3ks9s3ick93ic9sk3ic9kss3cki93ik9scc3iks93i9csk3si9kc3sci9kk3ics93c9sik3i9csk4ever")
'Tell Your World'

Changelog

Version 0.0.3

  • Renamed API .cipher.hill to .crypto, including its functions .encode() & .decode();
  • Closed configuration of changing mode;

References

[^1]: CTF Wiki Hill 密码

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

ichisaki-0.0.3.tar.gz (16.0 kB view hashes)

Uploaded Source

Built Distribution

ichisaki-0.0.3-py3-none-any.whl (16.6 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