473,396 Members | 1,772 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

AES crypto in pure Python?

I'm looking for an implementation of AES (the Advanced Encryption
Standard) in pure Python. I'm aware of pycrypto, but that uses C code.
I'm hoping to find something that only uses Python...I'm willing to
trade speed for portability, since my application is designed for
several different platforms.

Anyone know if this has been done?

Thanks,
-AF

Jul 18 '05 #1
3 5624
an***********@gmail.com wrote:
I'm looking for an implementation of AES (the Advanced Encryption
Standard) in pure Python. I'm aware of pycrypto, but that uses C code.
I'm hoping to find something that only uses Python...I'm willing to
trade speed for portability, since my application is designed for
several different platforms.

Anyone know if this has been done?

Thanks,
-AF


Google....
Jul 18 '05 #2

an***********@gmail.com wrote:
I'm looking for an implementation of AES (the Advanced Encryption
Standard) in pure Python. I'm aware of pycrypto, but that uses C code. I'm hoping to find something that only uses Python...I'm willing to
trade speed for portability, since my application is designed for
several different platforms.

Anyone know if this has been done?

I'm afraid my internet is heavily restricted, so I can't check for you.
*But* there is a 'tlslite' module which implements several encryption
methods in pure python. I *think* AES is one of them.

Regards,

Fuzzy
http://www.voidspace.org.uk/python/index.shtml

Thanks,
-AF


Jul 18 '05 #3
an***********@gmail.com writes:
I'm looking for an implementation of AES (the Advanced Encryption
Standard) in pure Python. I'm aware of pycrypto, but that uses C code.
I'm hoping to find something that only uses Python...I'm willing to
trade speed for portability, since my application is designed for
several different platforms.

Anyone know if this has been done?


Yes, it's been done a few times, you should be able to find some with
a web search. The ones I've seen are WAY too slow for most
applications, like a few blocks per second. If you don't require
using AES, there are some alternatives possible, like using the
built-in sha module as the round function for a Feistel cipher, or
using it in OFB mode as a keystream generator. I have some examples
of how to do either of these, if you want to see them.
Jul 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Simon Roses Femerling | last post by:
Hey all :) I'm looking for a good crypto toolkit (that should be multiplatform, work on python 2.3, etc..) What I have found looks old and too complex (installing 3 party libs, etc.) I just want...
0
by: Gandalf | last post by:
Hi All! I have an interesting problem here. I have written a Delphi program that should connect to a server written in Python. I'm using a package called DCP for encryption in Delphi and the...
5
by: Fuzzyman | last post by:
Python 2.4 is built with Microsoft Visiual C++ 7. This means that it uses msvcr7.dll, which *isn't* a standard part of the windows operating system. This means that if you build a windows installer...
2
by: Bryan Olson | last post by:
The current Python standard library provides two cryptographic hash functions: MD5 and SHA-1 . The authors of MD5 originally stated: It is conjectured that it is computationally infeasible to...
6
by: Michael Sparks | last post by:
Hi, I suspect this is a bug with AMK's Crypto package from http://www.amk.ca/python/code/crypto , but want to check to see if I'm being dumb before posting a bug report. I'm looking at...
1
by: mirandacascade | last post by:
I am attempting to implement a process, and I'm pretty sure that a major roadblock is that I do not understand the nomenclature. The specs indicate that the goal is to calculate a message digest...
1
by: GiBo | last post by:
Hi I need some encryption done in my Python 2.5 application. I wonder what's the most recommended library? I've found M2crypto and some OpenSSL wrappers and Python Cryptography Toolkit and some...
12
by: betabrain.honshu | last post by:
Hi Folks, for those of you who are familiar with the micropledge.com project, here is a good opportunity to spend or earn something: http://micropledge.com/projects/pysalsa20 I know that the...
12
by: Fett | last post by:
I need a crypto package that works on windows with python 2.5. Can anyone suggest one for me? I have been searching for a couple days for a good cryptography package to use for public/private...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.