By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,035 Members | 1,324 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,035 IT Pros & Developers. It's quick & easy.

How to program RSA algorithms using python language

P: 1
How to program RSA algorithms using python language includes the public and private key, encryption and decryption
Mar 25 '08 #1
Share this Question
Share on Google+
1 Reply


Subsciber123
P: 87
How to program RSA algorithms using python language includes the public and private key, encryption and decryption
I did this once. PM me if you want the script. It might be a bit buggy: I haven't tested it extensively, but it seems to work most of the time.

There were some annoying bits, such as getting the string to be the right size for the key.

It'll even generate a set of keys from a password using the md5 hash to get the lower limit of the prime numbers. Not certain if this method of creating a key is secure or not, but don't really care all that much.

It'll do any bit level of encryption, but I think I set a lower limit of 64 bit encryption or something because there is little point in encrypting something less securely than that. Keep in mind, though, that the higher the number of bits, the slower the program gets. However, the slowest part of the program is the part that is only done once, the generation of numbers that are probably prime.
Apr 11 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.