RSA encryption with PKCS1 in Python

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jiee
    New Member
    • Apr 2010
    • 3

    RSA encryption with PKCS1 in Python

    There is a javascript RSA implemention available here:http://www-cs-students.stanford.edu/~tjw/jsbn/
    I'm working on RSA encryption with PKCS1 using Python to get the similar results of the javascript implemention.
    I have used the rsa implemention packgage for pythonhttp://stuvel.eu/rsa, however, the implemention seems not to support the PKCS1 alogrithm.

    I'm also checked other rsa implemention for python, but seems no perfect solution.
    So is there any way for the rsa package of python to support PKCS1 alogrithm? Cause i'm not familiar with these encrption alogrithm, i can't simply get a solution for this problem.

    Any help would be appreciated.

    Jiee
  • RedSon
    Recognized Expert Expert
    • Jan 2007
    • 4980

    #2
    PKCS1 has been added to PyCrypto as a patch in Jan. 2010. It has not been integrated into the main trunk yet. It will probably be available in the next release.

    More info: https://bugs.launchpad.net/pycrypto/+bug/502291

    Comment

    • jiee
      New Member
      • Apr 2010
      • 3

      #3
      Thanks for your remind. I've checked that patch, but seems it wont' be supported soon.

      I've also have a view on the pkcs1 relative code in the patch, but so confused to use it.

      Since i only need a solution to fix the PKCS1 problem now to get a similar result of the RSA javascript implemention(http://www-cs-students.stanford.edu/~tjw/jsbn/), I wonder if there is any code snippets i can use to fix the PKCS1 in RSA python implemention(http://stuvel.eu/rsa).

      Comment

      Working...