Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Rijndael AES encryption algorithm in pure python.

License

NotificationsYou must be signed in to change notification settings

moeenz/rijndael

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open Source LoveBuild Status
A fully implementation of Rijndael encryption in pure Python.

Index

Usage

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.')

Chaining Modes

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

Source

This project is forked frompython-cryptoplus.

License

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

Packages

No packages published

Languages

  • Python100.0%

[8]ページ先頭

©2009-2025 Movatter.jp