During my search for pure python Nirvana I came across Bram Cohen‘s rijndael.py. It can work with strings of length 16, 24, or 32. Here’s the sample code that ran successfully (albeit slowly) on my Taco:
# Make sure rijndael.py is in your libs dir
from rijndael import rijndael
# key must be 16, 24, 32 characters long
key = 'sixteencharacter'
r = rijndael(key, 16)
# must encode/decode in the chosen blocksize
print 'Encoding/Decodingnusing Rijndael...'
plaintext = 'themonkeygoeswoo'
ciphertext = r.encrypt(plaintext)
print r.decrypt(ciphertext)
It took its sweet time to run, but isn’t much more painful than waiting for import urllib
, so it’s not the end of the world. It requires copy
and string
, which I’m not sure are in the Nokia distribution, but it works just fine if you dump the Python 2.2.2 source libraries in to your libs directory.
Add this one to your mobile cryptography toolbelt.
Comments
19 responses to “More Python for Series 60 Crypto: Rijndael”
bonjour
je suis un étudiant al’univérsité des science et de la téchnologie d’oran algerie.je continue mes études(1ére année informatique) et en méme temp je fait des recherche sur l’algorithme de rijndeal ou la méthode dela cryptographie aes (advanced encryption systéme) je besoin des application sur cette méthode avec builder c++ s. v.p.
E-mail:s210780@yahoo.fr
So what? I love Pythons!
greatings…
Agree…
evgrnycz wxtlirefn vswgkib ywxjh xazpknw uvawl alpqs
http://www.farfromboring.com/Promotional-Products/Eco-Friendly/c-85.html Thanks for that awesome posting. It saved MUCH time 🙂
Don’t you know that this is the best time to receive the business loans, which can make your dreams come true.
I apologise, but, in my opinion, you are mistaken. I can prove it. Write to me in PM.
It has no analogues?
I started to follow your blog
Excellent article. I want to have to ask questions
After I originally commented I clicked the -Notify me when new feedback are added- checkbox and now every time a comment is added I get 4 emails with the identical comment. Is there any way you possibly can take away me from that service? Thanks!
I really find mtss is a interesting subject. Never looked at this subject in this way. If you are going to write more articles relating to this subject, I definitely will be back soon!
Where did you got this much info on your blog from?? Also can i take the initiave to take the feeds from your blog for my yoga website?? But cant find the RSS feeds link here!!
If you’re a new house owner, you can keep the house as being a security.
basic bank account
Salutations, i am excited to read the whole content on this blog post and am very elated and excited to guess that the blogger has done a very good job here to put all the best stuff and information at one place, I will tell others about this information with a recommendation on my site.
I’d have to give carte blanche with you here. Which is not something I typically do! I enjoy reading a post that will make people think. Also, thanks for allowing me to comment!
Intriguing post. I have been searching for some good resources for solar panels and discovered your blog. Planning to bookmark this one!…
I REALLY liked your post and blog! It took me a minute bit to find your site…but I bookmarked it. Would you mind if I posted a link back to your post? …
wbVHLDfD
hqUVAr