Re: Encryption - was Hello World

2014-12-22 Thread Dave Angel
On 12/22/2014 05:29 PM, Chris Angelico wrote: On Tue, Dec 23, 2014 at 6:57 AM, Dave Angel wrote: I figure I must be misunderstanding something in your explanation, since a brute-force password guesser would seem to only need four billion tries to (probably) crack that. As to the assump

Re: Encryption - was Hello World

2014-12-22 Thread Chris Angelico
On Tue, Dec 23, 2014 at 6:57 AM, Dave Angel wrote: > I figure I must be misunderstanding something in your explanation, since a > brute-force password guesser would seem to only need four billion tries to > (probably) crack that. > > 1) Are you assuming that the cracker can read the source code, b

Re: Encryption source code with md5

2010-04-04 Thread geremy condra
On Sun, Apr 4, 2010 at 8:42 PM, Robert Kern wrote: > On 2010-04-04 17:44 , geremy condra wrote: >> >> On Sun, Apr 4, 2010 at 6:03 PM, Robert Kern  wrote: >>> >>> On 2010-04-03 20:21 , Lawrence D'Oliveiro wrote: In message<4baf3ac4$0$22903$e4fe5...@news.xs4all.nl>, Irmen de Jong wrot

Re: Encryption source code with md5

2010-04-04 Thread Robert Kern
On 2010-04-04 17:44 , geremy condra wrote: On Sun, Apr 4, 2010 at 6:03 PM, Robert Kern wrote: On 2010-04-03 20:21 , Lawrence D'Oliveiro wrote: In message<4baf3ac4$0$22903$e4fe5...@news.xs4all.nl>, Irmen de Jong wrote: On 28-3-2010 12:08, Lawrence D'Oliveiro wrote: Don’t use MD5. Also, m

Re: Encryption source code with md5

2010-04-04 Thread geremy condra
On Sun, Apr 4, 2010 at 6:03 PM, Robert Kern wrote: > On 2010-04-03 20:21 , Lawrence D'Oliveiro wrote: >> >> In message<4baf3ac4$0$22903$e4fe5...@news.xs4all.nl>, Irmen de Jong wrote: >> >>> On 28-3-2010 12:08, Lawrence D'Oliveiro wrote: >>> Don’t use MD5. >>> >>> Also, md5 is not an encryptio

Re: Encryption source code with md5

2010-04-04 Thread Robert Kern
On 2010-04-03 20:21 , Lawrence D'Oliveiro wrote: In message<4baf3ac4$0$22903$e4fe5...@news.xs4all.nl>, Irmen de Jong wrote: On 28-3-2010 12:08, Lawrence D'Oliveiro wrote: Don’t use MD5. Also, md5 is not an encryption algorithm at all, it is a secure hashing function. You can use hash func

Re: Encryption source code with md5

2010-04-03 Thread Steven D'Aprano
On Sun, 04 Apr 2010 13:21:34 +1200, Lawrence D'Oliveiro wrote: > In message <4baf3ac4$0$22903$e4fe5...@news.xs4all.nl>, Irmen de Jong > wrote: > >> On 28-3-2010 12:08, Lawrence D'Oliveiro wrote: >> >>> Don’t use MD5. >> >> Also, md5 is not an encryption algorithm at all, it is a secure hashing >

Re: Encryption source code with md5

2010-04-03 Thread Lawrence D'Oliveiro
In message <4baf3ac4$0$22903$e4fe5...@news.xs4all.nl>, Irmen de Jong wrote: > On 28-3-2010 12:08, Lawrence D'Oliveiro wrote: > >> Don’t use MD5. > > Also, md5 is not an encryption algorithm at all, it is a secure hashing > function. You can use hash functions for encryption. -- http://mail.pyth

Re: Encryption source code with md5

2010-03-28 Thread Steven D'Aprano
On Sun, 28 Mar 2010 10:08:20 -0400, Steve Holden wrote: > catalinf...@gmail.com wrote: >> I had a talk about Python and distribution of commercial products >> created with python. This made me think of a way to protect my source >> code to be distributed. I thought a live CD version and then to an

Re: Encryption source code with md5

2010-03-28 Thread Harishankar
On Sun, 28 Mar 2010 10:08:20 -0400, Steve Holden wrote: > catalinf...@gmail.com wrote: >> I had a talk about Python and distribution of commercial products >> created with python. This made me think of a way to protect my source >> code to be distributed. I thought a live CD version and then to an

Re: Encryption source code with md5

2010-03-28 Thread Steve Holden
catalinf...@gmail.com wrote: > I had a talk about Python and distribution of commercial products > created with python. This made me think of a way to protect my source > code to be distributed. I thought a live CD version and then to an > encryption method of a portion of source code. These though

Re: Encryption source code with md5

2010-03-28 Thread catalinf...@gmail.com
I had a talk about Python and distribution of commercial products created with python. This made me think of a way to protect my source code to be distributed. I thought a live CD version and then to an encryption method of a portion of source code. These thoughts are the source of two questions. -

Re: Encryption source code with md5

2010-03-28 Thread Irmen de Jong
On 28-3-2010 12:08, Lawrence D'Oliveiro wrote: In message<91541c26-6f18-40c7- a0df-252a52bb7...@l25g2000yqd.googlegroups.com>, catalinf...@gmail.com wrote: It is possible to encrypt with md5 python source code? Don’t use MD5. Also, md5 is not an encryption algorithm at all, it is a secure h

Re: Encryption source code with md5

2010-03-28 Thread Lawrence D'Oliveiro
In message <91541c26-6f18-40c7- a0df-252a52bb7...@l25g2000yqd.googlegroups.com>, catalinf...@gmail.com wrote: > It is possible to encrypt with md5 python source code? Don’t use MD5. > What option do I have to protect my python source code? Copyright. -- http://mail.python.org/mailman/listinfo

Re: Encryption source code with md5

2010-03-28 Thread starglider develop
py2exe On 28 March 2010 07:59, catalinf...@gmail.com wrote: > Dear friends . > > I have two simple questions: > It is possible to encrypt with md5 python source code? > What option do I have to protect my python source code? > > Thank you . > -- > http://mail.python.org/mailman/listinfo/python-l

Re: Encryption source code with md5

2010-03-28 Thread alex goretoy
There's not many options when it comes to obfuscating python source. If you even do find a way to obfuscate it. It won't take much to reverse it. That's just how python works. Really I wouldn't even worry about looking for a way to do this, reason behind that is that it's not difficult to reverse i

Re: Encryption Recommendation

2008-01-29 Thread Paul Rubin
Michael Ströder <[EMAIL PROTECTED]> writes: > But if the password checking is done with a challenge-response > mechanism (e.g. HTTP-Digest Auth or SASL with DIGEST-MD5) it's > required that the instance checking the password has the clear-text > password available. So reversible encryption for stor

Re: Encryption Recommendation

2008-01-29 Thread Michael Ströder
Diez B. Roggisch wrote: > [EMAIL PROTECTED] wrote: > >> I'm still using Python 2.4. In my code, I want to encrypt a password >> and at another point decrypt it. What is the standard way of doing >> encryption in python? Is it the Pycrypto module? > > Usually, one doesn't store clear-text passw

Re: Encryption Recommendation

2008-01-28 Thread Paul Rubin
"Diez B. Roggisch" <[EMAIL PROTECTED]> writes: > Usually, one doesn't store clear-text passwords. Instead, use a > hash-algorithm like md5 or crypt (the former is in the standard lib, don't > know of the other out of my head) and hash the password, and store that > hash. Rather, use the HMAC modul

RE: Encryption Recommendation

2008-01-28 Thread Andreas Tawn
>> I'm still using Python 2.4. In my code, I want to encrypt a password >> and at another point decrypt it. What is the standard way of doing >> encryption in python? Is it the Pycrypto module? > >Usually, one doesn't store clear-text passwords. Instead, use a >hash-algorithm like md5 or crypt (

Re: Encryption Recommendation

2008-01-28 Thread Tim Chase
> Usually, one doesn't store clear-text passwords. Instead, use a > hash-algorithm like md5 or crypt (the former is in the standard lib, don't > know of the other out of my head) and hash the password, and store that > hash. Python offers md5, and SHA modules built-in. (yay, python!) http://d

Re: Encryption Recommendation

2008-01-28 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > Hello - > > I'm still using Python 2.4. In my code, I want to encrypt a password > and at another point decrypt it. What is the standard way of doing > encryption in python? Is it the Pycrypto module? Usually, one doesn't store clear-text passwords. Instead, use a h

Re: Encryption and hashing

2007-08-18 Thread Kless
On 18 ago, 00:20, Paul Rubin wrote: > Kless <[EMAIL PROTECTED]> writes: > > So it haven't Twofish, Serpent, neither Whirlpool. Neither many others. > > Unless you have an interoperability requirement or some other specific > issue, you should stick with AES and the SHA2 f

Re: Encryption and hashing

2007-08-18 Thread Paul Rubin
Laszlo Nagy <[EMAIL PROTECTED]> writes: > OK sorry, I was wrong. Isn't blowfish a better version of twofish anyway? No. -- http://mail.python.org/mailman/listinfo/python-list

Re: Encryption and hashing

2007-08-18 Thread Laszlo Nagy
> These are the algorithms supported in the last version of PyCrypto: > > $ ls pycrypto-2.0.1/src/ > AES.c Blowfish.c DES.cIDEA.c > RIPEMD.c winrand.c > ARC2.ccast5.c _dsa.c MD2.c > _rsa.c XOR.c > ARC4.cCAST.c

Re: Encryption and hashing

2007-08-17 Thread Paul Rubin
Kless <[EMAIL PROTECTED]> writes: > So it haven't Twofish, Serpent, neither Whirlpool. Neither many others. Unless you have an interoperability requirement or some other specific issue, you should stick with AES and the SHA2 family. Don't make your own cipher selections unless you know completely

Re: Encryption and hashing

2007-08-17 Thread Kless
On 17 ago, 20:34, Laszlo Nagy <[EMAIL PROTECTED]> wrote: > > For who knows any of criptography I comment that you can use > > algorithms as secure as Rijndael, Twofish, or Serpent with the CFB > > cipher mode. And for hash you can use RIPEMD, SHA-2 or WHIRLPOOL. > > As I recall, PyCrypto can also u

Re: Encryption and hashing

2007-08-17 Thread Marshall T. Vandegrift
Kless <[EMAIL PROTECTED]> writes: > For who knows any of criptography I comment that you can use > algorithms as secure as Rijndael, Twofish, or Serpent with the CFB > cipher mode. And for hash you can use RIPEMD, SHA-2 or WHIRLPOOL. PyCrypto does includes the AES version of Rijndael as Crypto.Ci

Re: Encryption and hashing

2007-08-17 Thread Laszlo Nagy
> For who knows any of criptography I comment that you can use > algorithms as secure as Rijndael, Twofish, or Serpent with the CFB > cipher mode. And for hash you can use RIPEMD, SHA-2 or WHIRLPOOL. > As I recall, PyCrypto can also use these, and many others. And it can also do RSA. > And the

Re: Encryption recommendation

2007-07-31 Thread James Stroud
JS wrote: > Can someone help me find the proper way to do AES encryption/decryption > using Python? > > Thanks! > > Use pycrypto. You can roll it into a standalone program for any major OS. See . Don't attempt to write your own AES implementation for production softw

Re: Encryption recommendation

2007-07-31 Thread Ricardo Aráoz
Azazello wrote: > On Jul 31, 10:19 am, "JS" <[EMAIL PROTECTED]> wrote: >> Can someone help me find the proper way to do AES encryption/decryption >> using Python? >> >> Thanks! > > I did a quick look around the internet and found this seemingly good > link AES in general. Might be a good start. >

Re: Encryption recommendation

2007-07-31 Thread Paul Rubin
"JS" <[EMAIL PROTECTED]> writes: > Can someone help me find the proper way to do AES encryption/decryption > using Python? http://google.com/search?q=AES+Python -- http://mail.python.org/mailman/listinfo/python-list

Re: Encryption recommendation

2007-07-31 Thread Azazello
On Jul 31, 10:19 am, "JS" <[EMAIL PROTECTED]> wrote: > Can someone help me find the proper way to do AES encryption/decryption > using Python? > > Thanks! I did a quick look around the internet and found this seemingly good link AES in general. Might be a good start. http://msdn.microsoft.com/msd

Re: Encryption

2006-02-24 Thread dirvine
perfect thanks a lot and I can be cross platform too. cool -- http://mail.python.org/mailman/listinfo/python-list

Re: Encryption

2006-02-16 Thread Larry Bates
dirvine wrote: > 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 pycrypto and many others but is a wee bit of a > minefield out there. Anyone h

Re: Encryption

2006-02-16 Thread Robert J. Hansen
Honestly, the best thing you can do when it comes to writing crypto code is _not_ write crypto code. It's far better to instead use pre-existing, trusted, scrutinized, audited code. You'll probably be better served looking for a Python interface to OpenSSL, which will provide you with all the alg

Re: Encryption application/NEED A HACKER TO TRY IT

2006-02-15 Thread Evan Monroig
On Feb.15 18h18, atanas Cosmas Nkelame wrote : > I got an idea to write a python application which ciphers and > enciphers informationation (converting it to a format which only the > person who changed it understands as he is the only one who has the > program to decode the information). Hi,

Re: Encryption application/NEED A HACKER TO TRY IT

2006-02-15 Thread Paul Boddie
Fredrik Lundh wrote: > "atanas Cosmas Nkelame" <[EMAIL PROTECTED]> wrote: > > > I'm putting here the 'encoded' text for someone to try to encipher the text > > or tell me what is the chance that one can encipher the text. [From an FAQ on the subject...] > "I just came up with this neat method

RE: Encryption application/NEED A HACKER TO TRY IT

2006-02-15 Thread atanas Cosmas Nkelame
Hi guys,There was an instence in our office whereby someone happened to get his eyes on information he is not supposed to.I got an idea to write a python application which ciphers and enciphers informationation (converting it to a format which only the person who changed it understands as he is the

Re: Encryption application/NEED A HACKER TO TRY IT

2006-02-15 Thread Fredrik Lundh
"atanas Cosmas Nkelame" <[EMAIL PROTECTED]> wrote: > I'm putting here the 'encoded' text for someone to try to encipher the text > or tell me what is the chance that one can encipher the text. > > > Here we go.. > > .>. 3;0.$0.8:;07&:00: 07&.>..&;.$> 9::.$0. .&;..9>.;.$0.3;0 ;...$0.3;0 > 9::.$0.

Re: encryption with python?

2005-09-16 Thread Paul Rubin
Robert Kern <[EMAIL PROTECTED]> writes: > > http://www.nightsong.com/phr/crypto/p3.py > > [Ed Hotchkiss wrote:] > > Awesome. I just started Python today so I'd have no idea ... how good is > > this encryption compared to PGP? p3.py's functionality is nothing like PGP: it just encrypts character s

Re: encryption with python?

2005-09-16 Thread Larry Bates
I've successfully used this toolkit to implement AES encryption in a recent project. http://www.amk.ca/python/code/crypto -Larry Bates Robert Kern wrote: > Ed Hotchkiss wrote: > >>What's the best module for encryption with python, anyone out there >>using python and encryption together? > > >

Re: encryption with python?

2005-09-15 Thread Robert Kern
[Me:] > Probably the simplest encryption module would be Paul Rubin's p3.py . > It only requires the standard library. > > http://www.nightsong.com/phr/crypto/p3.py [Ed Hotchkiss wrote:] > Awesome. I just started Python today so I'd have no idea ... how good is > this encryption compared to PGP?

Re: encryption with python?

2005-09-15 Thread Ed Hotchkiss
  Awesome. I just started Python today so I'd have no idea ... how good is this encryption compared to PGP? Any info on using this file? Didn't see any on this guys site ...   On 9/16/05, Robert Kern <[EMAIL PROTECTED]> wrote: Ed Hotchkiss wrote:> Gmail was just an example, I just wanted to learn t

Re: encryption with python?

2005-09-15 Thread Robert Kern
Ed Hotchkiss wrote: > What's the best module for encryption with python, anyone out there > using python and encryption together? It depends on what your needs are. What do you need to accomplish? -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves

Re: encryption with python

2005-09-12 Thread Steven D'Aprano
Thank you to Mike Meyer, Kirk Sluder, and anyone who made constructive comments and/or corrections to my earlier post about generating student IDs as random numbers. Especially thanks to Marc Rintsch who corrected a stupid coding mistake I made. Serves me right for not testing the code. Kirk poin

Re: encryption with python

2005-09-11 Thread Ron Adam
Kirk Job Sluder wrote: > Ron Adam <[EMAIL PROTECTED]> writes: >>I would think that any n digit random number not already in the data >>base would work for an id along with a randomly generated password >>that the student can change if they want. The service provider has >>full access to the data

Re: encryption with python

2005-09-10 Thread Kirk Job Sluder
Ron Adam <[EMAIL PROTECTED]> writes: > Kirk Job Sluder wrote: > > > They want to be able to get their information by > > calling a phone number and saying a few words/phrases they memorized in > > childhood. Given the current market, it seems to be cheaper to deal > > with breaks after the fact

Re: encryption with python

2005-09-10 Thread Kirk Job Sluder
Paul Rubin writes: > Kirk Job Sluder <[EMAIL PROTECTED]> writes: > > Likewise, credit companies are currently making money hand-over-fist. > > If an identity is compromised, it's cheaper for them to just close the > > account, refund the money, and do their own fraud inv

Re: encryption with python

2005-09-10 Thread Ron Adam
James Stroud wrote: > On Saturday 10 September 2005 15:02, Ron Adam wrote: > >>Kirk Job Sluder wrote: >>I would think that any n digit random number not already in the data >>base would work for an id along with a randomly generated password that >>the student can change if they want. The service

Re: encryption with python

2005-09-10 Thread James Stroud
On Saturday 10 September 2005 16:30, Paul Rubin wrote: > The info to be combined was the student's birthdate.  Why would the TA > have access to either that or the SSN? Speaking as a former TA, we had all that and a little more, if I remember correctly. The "why" aspect is a little beyond me. Ja

Re: encryption with python

2005-09-10 Thread Paul Rubin
James Stroud <[EMAIL PROTECTED]> writes: > Yes and no. Yes, you are theoretically correct. No, I don't think > you have the OP's original needs in mind (though I am mostly > guessing here). The OP was obviously a TA who needed to assign > students a number so that they could "anonymously" check th

Re: encryption with python

2005-09-10 Thread James Stroud
On Saturday 10 September 2005 15:02, Ron Adam wrote: > Kirk Job Sluder wrote: > I would think that any n digit random number not already in the data > base would work for an id along with a randomly generated password that > the student can change if they want. The service provider has full > acce

Re: encryption with python

2005-09-10 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Steven D'Aprano wrote: > last_number_used = 12345 > usable_IDs = [] > > def make_studentID(): > global last_number_used > global usable_IDs > if not usable_IDs: > # generate another batch of IDs in random order > usable_IDs = range(last_number_u

Re: encryption with python

2005-09-10 Thread Ron Adam
Kirk Job Sluder wrote: > The only way to keep confidential stuff secure is to shred it, burn it, > and grind the ashes. > > I think the fundamental problem is that that most customers don't want > actual security. They want to be able to get their information by > calling a phone number and sa

Re: encryption with python

2005-09-10 Thread Paul Rubin
Kirk Job Sluder <[EMAIL PROTECTED]> writes: > I'm more than happy to agree to disagree on this, but I see it > differently. In aviation there certainly is a bit of risk-benefit > analysis going on in thinking about whether the cost of a given safety > is justified given the benefits in risk reduct

Re: encryption with python

2005-09-10 Thread James Stroud
On Saturday 10 September 2005 14:01, Kirk Job Sluder wrote: > Providing any kind of access to data involves creating a security hole. > This is the biggest flaw in most discussions of computer security. On 9/9/05 Steven D'Aprano wrote: > There are "one-way" encryption functions where the result ca

Re: encryption with python

2005-09-10 Thread Robert Kern
Kirk Job Sluder wrote: > Paul Rubin writes: > >>Kirk Job Sluder <[EMAIL PROTECTED]> writes: >>We're told there is already a secure database in the picture >>somewhere, or at least one that unescapeably contains cleartext SSN's, >>so that's the system that should assign t

Re: encryption with python

2005-09-10 Thread Kirk Job Sluder
Paul Rubin writes: > Kirk Job Sluder <[EMAIL PROTECTED]> writes: > We're told there is already a secure database in the picture > somewhere, or at least one that unescapeably contains cleartext SSN's, > so that's the system that should assign the ID numbers and handle >

Re: encryption with python

2005-09-10 Thread Paul Rubin
Kirk Job Sluder <[EMAIL PROTECTED]> writes: > You have a client on the phone who needs access to information, but has > forgotten or lost the 10-digit unique ID and the PIN you gave them two > years ago. How do you provide that client with the information he or > she needs? This is the kind of di

Re: encryption with python

2005-09-10 Thread Kirk Job Sluder
Paul Rubin writes: > Kirk Job Sluder <[EMAIL PROTECTED]> writes: > > Well, there is a form of security design that involves one-way > > encryption of confidential information. You might want to be able to > > search on SSN, but not have the actual SSN stored in the data

Re: encryption with python

2005-09-10 Thread Kirk Job Sluder
Steven D'Aprano <[EMAIL PROTECTED]> writes: > On Wed, 07 Sep 2005 14:31:03 -0700, jlocc wrote: > > > Basically I will like to combine a social security number (9 digits) > > and a birth date (8 digits, could be padded to be 9) and obtain a new > > 'student number'. It would be better if the origi

Re: encryption with python

2005-09-09 Thread Mike Meyer
Steven D'Aprano <[EMAIL PROTECTED]> writes: > On Wed, 07 Sep 2005 14:31:03 -0700, jlocc wrote: >> Basically I will like to combine a social security number (9 digits) >> and a birth date (8 digits, could be padded to be 9) and obtain a new >> 'student number'. It would be better if the original num

Re: encryption with python

2005-09-09 Thread Steven D'Aprano
On Wed, 07 Sep 2005 14:31:03 -0700, jlocc wrote: > Basically I will like to combine a social security number (9 digits) > and a birth date (8 digits, could be padded to be 9) and obtain a new > 'student number'. It would be better if the original numbers can't be > traced back, they will be kept i

Re: encryption with python

2005-09-09 Thread Steven D'Aprano
On Wed, 07 Sep 2005 15:52:19 -0700, James Stroud wrote: > Also, I should note that the sha function will, to the limits of anyone's > ability to analyze it, decouple the information from the hash. So, to be > careful, you should keep the algorithm to generate the IDs secret. Security by obscuri

Re: encryption with python

2005-09-07 Thread Steve Holden
Paul Rubin wrote: > James Stroud <[EMAIL PROTECTED]> writes: > >>Then your best bet is to take a reasonable number of bits from an sha hash. >>But you do not need pycrypto for this. The previous answer by "ncf" is good, >>but use the standard library and take 9 digits to lessen probability for

Re: encryption with python

2005-09-07 Thread Paul Rubin
James Stroud <[EMAIL PROTECTED]> writes: > Then your best bet is to take a reasonable number of bits from an sha hash. > But you do not need pycrypto for this. The previous answer by "ncf" is good, > but use the standard library and take 9 digits to lessen probability for > clashes > > import s

Re: encryption with python

2005-09-07 Thread James Stroud
Also, I should note that the sha function will, to the limits of anyone's ability to analyze it, decouple the information from the hash. So, to be careful, you should keep the algorithm to generate the IDs secret. The advantage of creating an ID from info in this way is that the ID is ("should

Re: encryption with python

2005-09-07 Thread James Stroud
On Wednesday 07 September 2005 14:31, [EMAIL PROTECTED] wrote: > Basically I will like to combine a social security number (9 digits) > and a birth date (8 digits, could be padded to be 9) and obtain a new > 'student number'. It would be better if the original numbers can't be > traced back, they w

Re: encryption with python

2005-09-07 Thread Robert Kern
[EMAIL PROTECTED] wrote: > Basically I will like to combine a social security number (9 digits) > and a birth date (8 digits, could be padded to be 9) and obtain a new > 'student number'. It would be better if the original numbers can't be > traced back, they will be kept in a database anyways. Hop

Re: encryption with python

2005-09-07 Thread Paul Rubin
[EMAIL PROTECTED] writes: > Basically I will like to combine a social security number (9 digits) > and a birth date (8 digits, could be padded to be 9) and obtain a new > 'student number'. It would be better if the original numbers can't be > traced back, they will be kept in a database anyways. Ho

Re: encryption with python

2005-09-07 Thread jlocc
Basically I will like to combine a social security number (9 digits) and a birth date (8 digits, could be padded to be 9) and obtain a new 'student number'. It would be better if the original numbers can't be traced back, they will be kept in a database anyways. Hope this is a bit more specific, th

Re: encryption with python

2005-09-07 Thread James Stroud
This is either a very simple or a very open-ended question you have asked. Do you want to be able to recover the original numbers arbitrarily from the combination? What properties do you want the combination to have? Do you want to take the combination and a number and see if the number is in th

Re: encryption with python

2005-09-07 Thread ncf
Steve M wrote: > >My goal is to combine two different numbers and > encrypt them to create a new number that cann't be traced back to the > originals. > > Here's one: > def encrypt(x, y): > """Return a number that combines x and y but cannot be traced back > to them.""" > return x + y Or y

Re: encryption with python

2005-09-07 Thread Steve M
>My goal is to combine two different numbers and encrypt them to create a new number that cann't be traced back to the originals. Here's one: def encrypt(x, y): """Return a number that combines x and y but cannot be traced back to them.""" return x + y -- http://mail.python.org/mailman/l

Re: encryption with python

2005-09-07 Thread Michael J. Fromberger
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > 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 traced back to the > originals. > > I

Re: encryption with python

2005-09-07 Thread Andreas Lobinger
Aloha, [EMAIL PROTECTED] wrote: > I was wondering if someone can recommend a good encryption algorithm > written in python. > It would be great if there exists a library already written to do this, > and if there is, can somebody please point me to it?? M2Crypto, interface to OpenSSL http://sand

Re: Encryption with Python?

2005-06-01 Thread Anthra Norell
y which I wish my idea to be judged. I never intended to dabble in commercial cryptography.) - Original Message - From: "Christos TZOTZIOY Georgiou" <[EMAIL PROTECTED]> Newsgroups: comp.lang.python To: Sent: Friday, May 27, 2005 11:52 AM Subject: Re: Encryption with

Re: Encryption with Python?

2005-05-27 Thread TZOTZIOY
On 26 May 2005 14:45:28 -0700, rumours say that Paul Rubin might have written: >> That's all. I see you took up the challenge and indirectly replied to >> my last question, and in good spirit I say you earned a little respect >> from me, at least for standing up to your

Re: Encryption with Python?

2005-05-26 Thread Paul Rubin
Christos "TZOTZIOY" Georgiou <[EMAIL PROTECTED]> writes: > That's all. I see you took up the challenge and indirectly replied to > my last question, and in good spirit I say you earned a little respect > from me, at least for standing up to your words. Now I hope no-one > gives a try to your data

Re: Encryption with Python?

2005-05-26 Thread TZOTZIOY
On Tue, 24 May 2005 10:16:15 +0200, rumours say that "Anthra Norell" <[EMAIL PROTECTED]> might have written: >Why whack someone over the head who tries to develop an idea of his own. >Such an approach isn't uncommon to earn extra credit in educational >settings. I would never whack someone over t

Re: Encryption with Python?

2005-05-24 Thread James Stroud
while i < len (string): > chunk = random.randint (0, CHUNK) > s_ = list (string [i:i+chunk]) > l = len (s_) > l_ = range (l) > s__ = l * [None] > o = preprocess_sequence (l_) > s_ = process_sequence (s_) >

Re: Encryption with Python?

2005-05-24 Thread Anthra Norell
_ [o[ii]] = s_ [ii] s += ''.join (s__) i += l return s - Original Message - From: "Christos TZOTZIOY Georgiou" <[EMAIL PROTECTED]> Newsgroups: comp.lang.python To: Sent: Friday, May 13, 2005 11:06 AM Subject: Re: Encryption with Python? > On

Re: Encryption with Python?

2005-05-14 Thread Philippe C. Martin
Hi, I am a very happy user of http://www.amk.ca/python/code/crypto.html Regards, Philippe Blake T. Garretson wrote: > 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 fil

Re: Encryption with Python?

2005-05-13 Thread hemanth
Anthra Norell wrote: > Thanks a lot for the feedback. This is certainly a great learning > experience. It's a fascinating topic too. Without wishing to annoy, I'd be > interested in knowing more. I insert questions below. > > You can google your questions and you will find them out answered in man

Re: Encryption with Python?

2005-05-13 Thread TZOTZIOY
On Sat, 7 May 2005 13:51:40 +0200, rumours say that "Anthra Norell" <[EMAIL PROTECTED]> might have written: >Here's the challenge. Prove this breakable > >'\x10\x88d\x1d\xba\xa1\xdcK\x05w\x02/s\xa7Q0\xeb8\xb6Gx\xef\xcb\x1e=\xf5\x7f >\x9bI\xcb(\x87>\xa5\x04\xc1soF\xfd\xc6\xc6\xd9|\x971\xdb\xcdT\tw#

Re: Encryption with Python?

2005-05-11 Thread Robert Kern
Peter Hansen wrote: >>Education is a process one must engage in. You don't just step in it. > > The education to which I was referring was that which _most_ of us just > received by reading Paul's and your replies, not from anything in the > OP's postings. ;-) Okay, I'll buy that. :-) -- R

Re: Encryption with Python?

2005-05-11 Thread Peter Hansen
Robert Kern wrote: > Peter Hansen wrote: > >> Back to Paul's question then: why use an unreliable and >> probably-useless-for-all-but-spawning-lengthy-but-educational-threads >> encryption method when there are relatively reliable and, uh, less >> discussed and non-edifying, uh... well, you get

Re: Encryption with Python?

2005-05-10 Thread Robert Kern
Peter Hansen wrote: > Back to Paul's question then: why use an unreliable and > probably-useless-for-all-but-spawning-lengthy-but-educational-threads > encryption method when there are relatively reliable and, uh, less > discussed and non-edifying, uh... well, you get the picture. ;-) Well, I'

Re: Encryption with Python?

2005-05-10 Thread Peter Hansen
Anthra Norell wrote: > From: "Paul Rubin" <"http://phr.cx"@NOSPAM.invalid> >>.. >>Since good encryption schemes that don't have significant performance >>penalties are widely available, why mess with a crap scheme EVER? Why >>use a solution that "might or might not be adequate" when you can us

Re: Encryption with Python?

2005-05-10 Thread Anthra Norell
Original Message - From: "Paul Rubin" <"http://phr.cx"@NOSPAM.invalid> Newsgroups: comp.lang.python To: Sent: Tuesday, May 10, 2005 12:59 AM Subject: Re: Encryption with Python? > .. > Since good encryption schemes that don't have significa

Re: Encryption with Python?

2005-05-09 Thread Paul Rubin
"Anthra Norell" <[EMAIL PROTECTED]> writes: > I don't follow. There is no bitwise correlation between a plain-text > character and its encoded equivalent. What's more, there is no detectable > correlation at all. Your question was how could you tell if two ciphertexts were encrypted with the same

Re: Encryption with Python?

2005-05-09 Thread Anthra Norell
Paul, I thank you too for your response. Let me just tell you what goes through my mind. - Original Message - From: "Paul Rubin" <"http://phr.cx"@NOSPAM.invalid> Newsgroups: comp.lang.python To: Sent: Monday, May 09, 2005 9:45 PM Subject: Re: Encryptio

Re: Encryption with Python?

2005-05-09 Thread Paul Rubin
"Anthra Norell" <[EMAIL PROTECTED]> writes: > The non-randomness of the difference is evidence of having guessed the key, > right? Why then do I need two samples? If I hack away at a single sample I > get a probably more conspicuous non-randomness twice as fast. No. Let's say you encrypt two asci

Re: Encryption with Python?

2005-05-09 Thread Anthra Norell
Robert, Thanks a lot for your thorough explanations. - Original Message - From: "Robert Kern" <[EMAIL PROTECTED]> To: Sent: Saturday, May 07, 2005 3:18 PM Subject: Re: Encryption with Python? ( snip ) > >>You do realize that if I have two ciphertext

Re: Encryption with Python?

2005-05-07 Thread Philippe C. Martin
PS: remmember that single DES has been brocken. If you're also interested in signature, this is an interesting article (a big upsate if true) http://it.slashdot.org/article.pl?sid=05/02/16/0146218&tid=93 Regards, Philippe Philippe C. Martin wrote: > I use http://www.amk.ca/python/code/crypto.

Re: Encryption with Python?

2005-05-07 Thread Philippe C. Martin
I use http://www.amk.ca/python/code/crypto.html Regards, Philippe Blake T. Garretson wrote: > 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?

Re: Encryption with Python?

2005-05-07 Thread Robert Kern
ot;Robert Kern" <[EMAIL PROTECTED]> > To: > Sent: Saturday, May 07, 2005 11:11 AM > Subject: Re: Encryption with Python? > > > >>Anthra Norell wrote: >> >>>I rolled my own for relatively short sequences, like passwords. The key > > is &

Re: Encryption with Python?

2005-05-07 Thread Sergei Organov
"Anthra Norell" <[EMAIL PROTECTED]> writes: > Thanks a lot for the feedback. This is certainly a great learning > experience. It's a fascinating topic too. Without wishing to annoy, I'd be > interested in knowing more. I insert questions below. There is a lot of information about the issues on th

Re: Encryption with Python?

2005-05-07 Thread Jim
What machine did you say that was, again? Jim -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >