More Python for Series 60 Crypto: Rijndael




Rijndael on Series 60

During my search for pure python Nirvana I came across Bram Cohen‘s 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 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.


19 responses to “More Python for Series 60 Crypto: Rijndael”

  1. samir Avatar

    je suis un étudiant al’univérsité des science et de la téchnologie d’oran 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.

  2. Hanne Avatar

    So what? I love Pythons!

  3. greatings…


  4. grshjzim goephia Avatar

    evgrnycz wxtlirefn vswgkib ywxjh xazpknw uvawl alpqs

  5. BuchananFrieda35 Avatar

    Don’t you know that this is the best time to receive the business loans, which can make your dreams come true.

  6. cheap propecia Avatar

    I apologise, but, in my opinion, you are mistaken. I can prove it. Write to me in PM.

  7. propecia Avatar

    It has no analogues?

  8. porno izle Avatar

    I started to follow your blog

  9. porno izle Avatar

    Excellent article. I want to have to ask questions

  10. Blackjack Avatar

    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!

  11. fheifhei Avatar

    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!

  12. Carroll B. Merriman Avatar

    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!!

  13. bad credit bank accounts Avatar

    If you’re a new house owner, you can keep the house as being a security.
    basic bank account

  14. spyware removal software Avatar

    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.

  15. Josefa Pelosi Avatar

    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!

  16. 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? …

  17. tlpGNx Avatar