How to program RSA algorithms using python language includes the public and private key, encryption and decryption
How to program RSA algorithms using python language
Collapse
X
-
Tags: None
-
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.Originally posted by fatin hhmedHow to program RSA algorithms using python language includes the public and private key, encryption and decryption
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.
Comment