Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    SimpleAES 1.0

    Download button

    No screenshots available
    Downloads: 99  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Vincent Driessen | More programs
    BSD License / FREE
    February 21st, 2012, 21:47 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    SimpleAES description

    AES-256 encryption and decryption in Python for mere mortals

    SimpleAES is an AES-256 encryption and decryption in Python library.

    AES is a symmetric encryption algorithm, meaning you use the same key to encrypt and decrypt the data later on.

    Here's how simple it is:

    >>> from SimpleAES import SimpleAES
    >>> key = 'Some arbitrary bytestring.' # Store this somewhere safe
    >>> aes = SimpleAES(key)
    >>> ciphertext = aes.encrypt('My secret plaintext data')
    >>> ciphertext
    '\x18\x00\x00\x00\x00\x00\x00\x00\xaf\xbal\xa0\xb5\xa3\x18?\xc6\x13\xb3\x1bjS\xa6;\x80z\xca(\x8cls\n3&\xa3\x93\x86\xf4\xf6\x08\xe8y\x05V\xa7\xc2\x1d\x03G\xff\x9fS\x80\xf5\x1b\x05'
    >>> plaintext = aes.decrypt(ciphertext)
    >>> plaintext
    'My secret plaintext data'


    Details

    You can use arbitrarily long keys. Use a good random generator to generate one and store it safe. (For the technically inclined: a 256-bit hash is calculated from the input key and forms the actual encryption key.)

    AES has a fixed block length (128 bits) and supports variable key sizes, but this library always uses AES-256, meaning 256-bit key sizes.

    Be warned!

    Only every use this library for encrypting/decrypting relatively small pieces of text (compared to available memory, that is). It holds both the input and output strings in memory for the full length of the algorithm, so memory peaks may be an issue when used on large input strings.

    Installation

    The usual stuff.

     pip install SimpleAES


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    AES-256 encryption | Python library | AES-256 decryption | Python | AES-256 | encryption

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM