473,387 Members | 1,579 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,387 software developers and data experts.

Missing rotor module

I'm in the midle of porting a python 1.5 application to 2.4

I just discovered that the rotor encryption module isn't part anymore of
the 2.4 distribution.

Is there a way to add this module to 2.4, or what would be the simplest
way to replace this.
The existing application makes use of the rotor module everywhere, which
means in a lot of modules.

Thanks for any ideas

Rony

Jul 25 '06 #1
5 2127
rony steelandt <bu****@yahoo.frwrites:
Is there a way to add this module to 2.4, or what would be the simplest
way to replace this.
The existing application makes use of the rotor module everywhere, which
means in a lot of modules.

Thanks for any ideas
It's still in the 1.5 distro and later ones up to maybe 2.2. You can
probably just drop it into 2.4 and compile it. But you should migrate
away from it if you were using it for anything serious. Its security
sucks.
Jul 25 '06 #2
Unfortunately rotor has been deprecated but it hasn't been replaced
with anything reasonable as far as encryption goes -- there are just a
bunch of hashing funtions (sha, md5) only. If you need to replace rotor
all together I would sugest the crypto library from:

http://www.amk.ca/python/code/crypto.html

It has good encryption algorithms like AES, IDEA and others.

I know it doesn't have rotor, because rotor is not a very good
encryption algorithm -- I still don't know why it was ever included in
Python. So refactor your code if you can to use AES for example.

But of course if you have bunch of data encrypted with rotor that your
program need to decrypt you can use this replacement found on
mail.python.org:
http://mail.python.org/pipermail/pyt...ry/261304.html
It is much slower because it was written in Python while the original
rotor was in C, and I am not sure if it is _exactly_ the same.

Good luck,
Nick V.
rony steelandt wrote:
I'm in the midle of porting a python 1.5 application to 2.4

I just discovered that the rotor encryption module isn't part anymore of
the 2.4 distribution.

Is there a way to add this module to 2.4, or what would be the simplest
way to replace this.
The existing application makes use of the rotor module everywhere, which
means in a lot of modules.

Thanks for any ideas

Rony
Jul 25 '06 #3

NickI still don't know why it was ever included in Python.

It was another time and place altogether than the world we live in today.
Python was a much smaller language and had a much smaller following.
Concerns about security were minimal (relative to today anyway).

Skip
Jul 25 '06 #4
"Nick Vatamaniuc" <va******@gmail.comwrites:
Unfortunately rotor has been deprecated but it hasn't been replaced
with anything reasonable as far as encryption goes -- there are just a
bunch of hashing funtions (sha, md5) only. If you need to replace rotor
all together I would sugest the crypto library from:

http://www.amk.ca/python/code/crypto.html

It has good encryption algorithms like AES, IDEA and others.
If you want something in pure Python that's easy to use, there's also:

http://nightsong.com/phr/crypto/p3.py

Its security should be better than rotor and its speed is not too
terrible. However, if you're looking to replace rotor in a production
application you should stick with something more standard,
i.e. AES-based.
Jul 26 '06 #5
Le Tue, 25 Jul 2006 12:22:26 -0700, Nick Vatamaniuc a écrit*:
Unfortunately rotor has been deprecated but it hasn't been replaced
with anything reasonable as far as encryption goes -- there are just a
bunch of hashing funtions (sha, md5) only. If you need to replace rotor
all together I would sugest the crypto library from:

http://www.amk.ca/python/code/crypto.html

It has good encryption algorithms like AES, IDEA and others.

I know it doesn't have rotor, because rotor is not a very good
encryption algorithm -- I still don't know why it was ever included in
Python. So refactor your code if you can to use AES for example.

But of course if you have bunch of data encrypted with rotor that your
program need to decrypt you can use this replacement found on
mail.python.org:
http://mail.python.org/pipermail/pyt...ry/261304.html
It is much slower because it was written in Python while the original
rotor was in C, and I am not sure if it is _exactly_ the same.

Good luck,
Nick V.
rony steelandt wrote:
>I'm in the midle of porting a python 1.5 application to 2.4

I just discovered that the rotor encryption module isn't part anymore of
the 2.4 distribution.

Is there a way to add this module to 2.4, or what would be the simplest
way to replace this.
The existing application makes use of the rotor module everywhere, which
means in a lot of modules.

Thanks for any ideas

Rony
Thank you Nick
At least I can read the existing data.
i'll evaluate if i should continu to use this or implement another
encryption.

Rony

Jul 26 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

46
by: Robin Becker | last post by:
It seems that the rotor module is being deprecated in 2.3, but there doesn't seem to be an obvious alternative. I'm using it just for obfuscation. It seems we have ssl available in 2.3 for sockets,...
92
by: Reed L. O'Brien | last post by:
I see rotor was removed for 2.4 and the docs say use an AES module provided separately... Is there a standard module that works alike or an AES module that works alike but with better encryption?...
3
by: Murphy Wong | last post by:
Dear all, I've installed python 2.4.2 and Zope 2.8.5 on a 64-bit Linux. As I'm installing FLE (http://fle3.uiah.fi/), I find that it will call the rotor module i npython. However, rotor is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.