Skip to main content

Posts

Showing posts from November, 2006

Resource for Development

I am tyro for web programming, especially, Ajax and xml. There are some reference for web devlopment and others. 1. IBM DeveloperWork is general website for JAVA, Linux and Web development. There is site address for Chinese. 2. CSND is main site for Chinese programmers. 3. I has a Apple Laptop and I am loving its white surface. There is Apple developer website for base Mac system. To Be Continue....

RSA encryption arithmetic and be achieved by Python

The first approach of the algorithm , we random produce two prime numbers named p and q , Compute N = p * q note that N. Choose which should be less than N such that e and (p-1) (q-1) are relatively prime numbers. Public key is a pair of numbers (N, e). They should have no common factor other than 1. For example d is the decryption key, According to this algorithm (e*d) %( p-1) (q-1) = = = 1(identity sign), get d is the private key. Using the Euclidean algorithm to compute the modular inverse of e modulo N, the result is d. For example P is the ASCII code of a char in clear text. Then we take the RSA algorithm C = Pe % N. we can get C. Why chose python. Because there is a problem for the other language, big number operation but python can it directly. Main code: rsaEncrption.py N = p * q # two big prime number p and q d = 2 # d is the private key. it make the identic equation (e*d) % ((p-1)*(q-1)) === 1 while (e*d) %(p-1)*(q-1) != 1 d += 1 # public key : (N, e)

MSc. Information Systems Resources

CSM01 Web Publishing CSM03 Information Systems Development CSM04 Challenges for Computing Professionals CSM24 Introducation to Multimedia Security Other resources www.w3schools.com University of Surrey / WWW2 Documents My website in Surrey Welcome 2 my home Email of Surrey

Hello World again!

No one is free! I chose two blog hostings to publish my blog, althrough I was not often writting, the second one which the biggest and gorgeous host is Squarespace.com and I think it will free forever........ anyway, hello come back my new homepage again! I think moving is interesting when you just spent all night to finish a coursework. Faint!