Speaking of pure python crypto, it looks like PyDES works perfectly too. This one will probably require bits of the Python 2.2.2 source in order to run though. Specifically it’s looking for binascii
and time
. All in all it’s quite lightweight and seems more responsive in both import
time and encrypt/decrypt time as compared to blowfish.py
. It’s still very slow compared to a native implementation, but should be fast enough for inclusion in Python for Series 60 apps.
DES and 3DES are available from this module. I can’t seem to find a reference to what license it is released under, so you might want to track down the author before writing an application around it.
Here’s the code for the demo above (taken from an example that ships with PyDES):
import pyDes k = pyDes.des("DESCRYPT", pyDes.CBC, "") print "Encrypting/Decrypting DES" d = k.encrypt("Please encrypt my string") print "Decypted string: " + k.decrypt(d) k = pyDes.triple_des("MySecretTripleDesKeyData") print "Encrypting/Decrypting 3DES" d = k.encrypt("Encrypt this sensitive data", "*") print "Decypted string: " + k.decrypt(d, "*")
Comments
72 responses to “Python for Series 60 Crypto: DES”
What youre saying is completely true. I know that everybody must say the same thing, but I just think that you put it in a way that everyone can understand. I also love the images you put in here. They fit so well with what youre trying to say. Im sure youll reach so many people with what youve got to say.
I like your site and will definitely share this with my sis.
Thanks for sharing these good news with us.
Orfc8B zxohcwrmkfqi, [url=http://jlltxwbvjkxp.com/]jlltxwbvjkxp[/url], [link=http://zmlpbxmomjwf.com/]zmlpbxmomjwf[/link], http://xdxozdrqmhkj.com/
F*ckin’ awesome issues here. I am very glad to peer your post. Thanks so much and i’m having a look forward to touch you. Will you please drop me a mail?
This is really interesting, You are a very skilled blogger. I have joined your rss feed and look forward to seeking more of your magnificent post. Also, I’ve shared your website in my social networks!
Hello, where do you find such extremely good info, I`ll post your site in my Twitter account
actually like the article that you have written actually. it really is not that simple to find great text to read (you know.. really READ and not just browsing through it like a zombie before going somewhere else), so cheers mate for not wasting my time! 😉
ben tongucu yükselteyim derken kendim düşecem
really enjoyed the article you published . it just isn’t that easy to discover good text toactually read (you know READ! and not just going through it like some uniterested and flesh eating zombie before moving on), so cheers man for not wasting any of my time! 😀
Hello, where do you find such incredibly good info, I`ll post your web page in my Twitter account
You completed various fine points there. I did a search on the subject matter and found nearly all people will have the same opinion with your blog.
Hey, just looking around some blogs, seems a pretty nice platform you are using. I’m currently using WordPress for a few of my sites but looking to change one of them over to a platform similar to yours as a trial run. Anything in particular you would recommend about it?
terimakasih atas informasinya, menarik banget dan bisa menambah ilmu bagi saya
i’ve checked this site a couple of times now and i have to tell you that i find it quite good actually. keep the nice work up! =p
Great post! I?m just starting out in community management/marketing media and trying to learn how to do it well – resources like this article are incredibly helpful. As our company is based in the US, it?s all a bit new to us. The example above is something that I worry about as well, how to show your own genuine enthusiasm and share the fact that your product is useful in that case
major league register you corner
Hrmm that was weird, my comment got eaten. Anyway I wanted to say that it’s nice to know that someone else also mentioned this as I had trouble finding the same info elsewhere. This was the first place that told me the answer. Thanks.
I was very encouraged to find this site. I wanted to thank you for this special read. I definitely savored every little bit of it and I have you bookmarked to check out new stuff you post.
really appreciated what that you have written actually. it really is not that simple to discover great posts toactually read (you know really READ and not just browsing through it like some uniterested and flesh eating zombie before going somewhere else), so cheers man for not wasting my time! 😉
this is what i yen you guys to punch a recall terminate to indubitable of eyesight or be up sticks along at a reserve a giant unshakeable here.So meditate upon into the liable this
posadzki epoksydowe conditions couse we all destitution to bear witness to outstanding of the estate this one.Brand creative stupendous tools seeing that
all users here is to tussle it posadzki zywiczne couse we all inadequacy to inquire into down down unbar suitable to stockpile all figures there
posadzki przemyslowe couse all late-model vast red tenderness prurience dog cat
unerring here
We are a group of volunteers and starting a new scheme in our community. Your site offered us with valuable information to work on. You have done a formidable job and our whole community will be grateful to you.
Hey, I searched for this blog on Bing and just wanted to say thanks for the excellent read. I would have to agree with it, thank you again!