Skip to main content

brealid's python package

Project description

brealid-python-lib

brealid python library

Installation

pip install brealid

Structure

  • brealid
    • ctf
      • crypto
        • Alias (remote, bytes_xor)
        • GF2n

Usage

ctf

from brealid.ctf import *
from brealid.ctf.crypto import GF2n

print(bytes_xor(b'hello, world', b'\x06\nL\x01\x00^EW\t\x1e\r\x03'))
# b'no more flag'

num = GF2n(0x13) * GF2n(0x13)
print(num)
print(repr(num))
# 261
# GF2n<GaloisField(2^512), poly=0x125> (0x105)

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

brealid-0.0.4.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

brealid-0.0.4-py3-none-any.whl (4.0 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