473,383 Members | 1,759 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

RSA encryption with PKCS1 in Python

3
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
Apr 1 '10 #1

✓ answered by RedSon

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

2 4074
RedSon
5,000 Expert 4TB
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
Apr 1 '10 #2
jiee
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).
Apr 2 '10 #3

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

Similar topics

4
by: Daniel Orner | last post by:
Hello, I'm working on a project that consists of a Java application on the desktop, and a server with Python CGI code. I'm trying to find an encryption algorithm, which would let me send...
22
by: Kamilche | last post by:
I've looked at a few alternatives for encryption with Python, and didn't come up anything very speedy. I've written an encryption algorithm in pure Python that can process 22 megs of data a...
4
by: drs | last post by:
Hi, I need to send secure data over an insecure network. To that end, I am needing to encrypt serialized data and then decrypt it. Is there a builtin way to do this in Python? MD5, SHA, etc...
34
by: Blake T. Garretson | last post by:
I want to save some sensitive data (passwords, PIN numbers, etc.) to disk in a secure manner in one of my programs. What is the easiest/best way to accomplish strong file encryption in Python? ...
34
by: jlocc | last post by:
Hi! I was wondering if someone can recommend a good encryption algorithm written in python. My goal is to combine two different numbers and encrypt them to create a new number that cann't be...
4
by: Kinsley Turner | last post by:
Hey-ho, I'm getting a bit out of my depth porting the 'tiny encryption algorithm' from C to python. Ref: http://en.wikipedia.org/wiki/Tiny_Encryption_Algorithm...
3
by: dirvine | last post by:
HI hope you can help (know you can). I am looking for a very strong AIS or better symetrical encryption in python. Any suggestions ideas welcome. I have spent a lot of time looking everywhere at...
2
by: tfoxusenet | last post by:
Hi, I need to encrypt/decrypt some data for my C# application that can also be read on a unix system, and need a quick, simple, cross-platform solution I can embed in my own code that doesn't...
1
by: Robert Blass | last post by:
I am looking to get my feet wet with encryption. When I say encryption program I am talking about something to get me off to a quick start. Something very simple, far less than the 40+ bit...
5
by: Netwatcher | last post by:
well, i started messing around with dictionaries, yet, most of the pages i found about them always talk about getting only one word out of it and turning it vice versa, i've been playing with that...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.