- Notifications
You must be signed in to change notification settings - Fork8
Rijndael AES encryption algorithm in pure python.
License
moeenz/rijndael
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A fully implementation of Rijndael encryption in pure Python.
First install rijndael from PyPi
pip install rijndael
and now you can use encryption/decryption system.
fromrijndael.cipher.cryptimportnewfromrijndael.cipher.blockcipherimportMODE_CBCrjn=new(KEY,MODE_CBC,IV,blocksize=BLOCKSIZE)encd=rjn.encrypt('A padded string to BLOCKSIZE length.')rjn=new(KEY,MODE_CBC,IV,blocksize=BLOCKSIZE)decd=rjn.decrypt('A padded string to BLOCKSIZE length.')
rijndael
supports multiple chaining modes.
- Right now these chaining modes are supported:
- MODE_ECB
- MODE_CBC
- MODE_CFB
- MODE_OFB
- MODE_CTR
- MODE_XTS
- MODE_CMAC
This project is forked frompython-cryptoplus.
The MIT License (MIT)
Copyright (c) 2018 rijndael Project.
Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included inall copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Third party implementations are distributed under their respective licenseas specified in their source file(s):
Ciphers: pyblowfish.py, pyDes.py, pyserpent.py, pytwofish.py, rijndael.py - pyblowfish.py is being redistributed under the Artistic LicenseHash functions: pypbkdf2.py, pywhirlpool.py using pypy license: pysha.py, pysha224.py, pysha256.py, pysha384.py, pysha512.py, pymd5.py
About
Rijndael AES encryption algorithm in pure python.
Topics
Resources
License
Stars
Watchers
Forks
Packages0
Languages
- Python100.0%