2 files were added to this release more than 14 days after its initial publication. Inspect the release files before installing.
Introduction
This module implements the SEAL2 algorithm. SEAL2 is the second version of the stream cipher, SEAL, designed by Don Coppersmith and Phillip Rogaway.
Using it is very simple. First you have to create a SEAL2 context initialize with a 20-byte key”
>>> import seal2
>>> context=seal2.new("x"*20)
You can now encrypt data using the encrypt method:
>>> context.encrypt("Hello, world")
'\xfb\xfd\x81\xa3\x0e\x05i\x9e\xc6\xbdU\xe7'
Decryption works very similar:
>>> context=seal2.new("x"*20)
>>> context.decrypt("\xfb\xfd\x81\xa3\x0e\x05i\x9e\xc6\xbdU\xe7")
'Hello, world'
Caveat
SEAL2 is designed to generate up to 2^48 bytes of output per seed. In 1997, Handschuh and Gilbert showed, however, that the output stream can be distinguished from a random sequence after only seeing roughly 2^34 bytes of output. Thus, it is prudent to avoid using the same seed for more than 2^34 bytes of output.
Requirements & Installation
seal2 requires python 2.4 or later. You also need setuptools.
To install it you will need a working C compiler and the python development libraries and include files.
Installing it is simple: you can use the standard setup.py interface:
python setup.py install
seal2 1.0
First release
Release files for seal2 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Files added late
2 files were uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release files before installing.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| seal2-1.0.tar.gz | 13.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| seal2-1.0-py2.4-macosx-10.3-i386.egg | Legacy Egg format | - | - | Details |
Total release size: 24.9 kB
Release files / seal2-1.0.tar.gz
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | seal2-1.0.tar.gz |
|---|---|
| Size | 13.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eae7c2ad74f9a024962b39bcc462cb5a14d30706d8b65d82e6180ca59cfe465a
|
|
BLAKE2b-256 checksum How to use checksums |
b6773a483ceca82c1b19b83d8b5bf78bca7578925417cefef71d0e340078d5f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / seal2-1.0-py2.4-macosx-10.3-i386.egg
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | seal2-1.0-py2.4-macosx-10.3-i386.egg |
|---|---|
| Size | 11.8 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
252ffe8dc351c985e06879c5f62d4b798483c6d26f913b9d9192a4381681f4b4
|
|
BLAKE2b-256 checksum How to use checksums |
2914af50f27c38d083a166b40b3873aca713844859288fb47794b71eb9f07277
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |