Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #20301 > unrolled thread
| Started by | zigi <cezar4846@gmail.com> |
|---|---|
| First post | 2012-02-12 14:34 -0800 |
| Last post | 2012-02-13 14:38 -0800 |
| Articles | 6 — 3 participants |
Back to article view | Back to comp.lang.python
M2crypto zigi <cezar4846@gmail.com> - 2012-02-12 14:34 -0800
Re: M2crypto Mel Wilson <mwilson@the-wire.com> - 2012-02-12 19:00 -0500
Re: M2crypto geremy condra <debatem1@gmail.com> - 2012-02-12 16:28 -0800
Re: M2crypto zigi <cezar4846@gmail.com> - 2012-02-13 00:37 -0800
Re: M2crypto geremy condra <debatem1@gmail.com> - 2012-02-13 14:27 -0800
Re: M2crypto zigi <cezar4846@gmail.com> - 2012-02-13 14:38 -0800
| From | zigi <cezar4846@gmail.com> |
|---|---|
| Date | 2012-02-12 14:34 -0800 |
| Subject | M2crypto |
| Message-ID | <2515ca96-77c9-4264-aaf2-42bd98fcf9ca@dq9g2000vbb.googlegroups.com> |
Hello, M2crypto __init__(self, alg, key, iv, op, key_as_bytes=0, d='md5', salt='12345678', i=1, padding=1) I wont write app, using M2crypto and I can not understand what are the arguments: key, iv, op, salt ? What they do ?
[toc] | [next] | [standalone]
| From | Mel Wilson <mwilson@the-wire.com> |
|---|---|
| Date | 2012-02-12 19:00 -0500 |
| Message-ID | <jh9jrl$jqs$1@speranza.aioe.org> |
| In reply to | #20301 |
zigi wrote: > Hello, > M2crypto > > __init__(self, alg, key, iv, op, key_as_bytes=0, d='md5', > salt='12345678', i=1, padding=1) > > I wont write app, using M2crypto and I can not understand what are the > arguments: > key, iv, op, salt ? > What they do ? I assume you're reading in <http://www.heikkitoivonen.net/m2crypto/api/> about M2Crypto.EVP.Cipher. Epydoc claims another victim. I'm having a lot of trouble finding documentation. The obvious OpenSSL pages are kind of thin, too. You might see some useful code in the EVP unit tests m2crypto/tests/test_evp.py in the m2crypto installation. Good hunting, Mel.
[toc] | [prev] | [next] | [standalone]
| From | geremy condra <debatem1@gmail.com> |
|---|---|
| Date | 2012-02-12 16:28 -0800 |
| Message-ID | <mailman.5748.1329092912.27778.python-list@python.org> |
| In reply to | #20316 |
On Sun, Feb 12, 2012 at 4:00 PM, Mel Wilson <mwilson@the-wire.com> wrote: > zigi wrote: > >> Hello, >> M2crypto >> >> __init__(self, alg, key, iv, op, key_as_bytes=0, d='md5', >> salt='12345678', i=1, padding=1) >> >> I wont write app, using M2crypto and I can not understand what are the >> arguments: >> key, iv, op, salt ? >> What they do ? > > I assume you're reading in <http://www.heikkitoivonen.net/m2crypto/api/> > about M2Crypto.EVP.Cipher. > > Epydoc claims another victim. > > I'm having a lot of trouble finding documentation. The obvious OpenSSL > pages are kind of thin, too. You might see some useful code in the EVP unit > tests m2crypto/tests/test_evp.py in the m2crypto installation. Not intending to be rude, but being perfectly serious: as a general rule, if you don't know what an IV is you're probably getting yourself into a lot of trouble working with low-level crypto libraries. Two suggestions: 1. Describe what you're trying to do- I'll be able to help more if I know what you're actually going for. 2. Try keyczar. It's not perfect, but it's a lot easier to get right. Geremy Condra
[toc] | [prev] | [next] | [standalone]
| From | zigi <cezar4846@gmail.com> |
|---|---|
| Date | 2012-02-13 00:37 -0800 |
| Message-ID | <61db3262-c120-4dc8-8f63-1d7496e4001c@gr6g2000vbb.googlegroups.com> |
| In reply to | #20318 |
Hello, this is must be testing time to crypt files, using just M2crypto :-) I know this is a strange use of the library, but such is the will of the management. On 13 Lut, 01:28, geremy condra <debat...@gmail.com> wrote: > On Sun, Feb 12, 2012 at 4:00 PM, Mel Wilson <mwil...@the-wire.com> wrote: > > zigi wrote: > > >> Hello, > >> M2crypto > > >> __init__(self, alg, key, iv, op, key_as_bytes=0, d='md5', > >> salt='12345678', i=1, padding=1) > > >> I wont write app, using M2crypto and I can not understand what are the > >> arguments: > >> key, iv, op, salt ? > >> What they do ? > > > I assume you're reading in <http://www.heikkitoivonen.net/m2crypto/api/> > > about M2Crypto.EVP.Cipher. > > > Epydoc claims another victim. > > > I'm having a lot of trouble finding documentation. The obvious OpenSSL > > pages are kind of thin, too. You might see some useful code in the EVP unit > > tests m2crypto/tests/test_evp.py in the m2crypto installation. > > Not intending to be rude, but being perfectly serious: as a general > rule, if you don't know what an IV is you're probably getting yourself > into a lot of trouble working with low-level crypto libraries. > > Two suggestions: > > 1. Describe what you're trying to do- I'll be able to help more if I > know what you're actually going for. > > 2. Try keyczar. It's not perfect, but it's a lot easier to get right. > > Geremy Condra
[toc] | [prev] | [next] | [standalone]
| From | geremy condra <debatem1@gmail.com> |
|---|---|
| Date | 2012-02-13 14:27 -0800 |
| Message-ID | <mailman.5783.1329172066.27778.python-list@python.org> |
| In reply to | #20338 |
On Mon, Feb 13, 2012 at 12:37 AM, zigi <cezar4846@gmail.com> wrote: > Hello, > this is must be testing time to crypt files, using just M2crypto :-) > I know this is a strange use of the library, but such is the will of > the management. I take it you mean that you're benchmarking file encryption performance using M2Crypto? If your only goal is to do exactly that then go for it, but otherwise you're probably using the wrong tool for the job. Geremy Condra > On 13 Lut, 01:28, geremy condra <debat...@gmail.com> wrote: >> On Sun, Feb 12, 2012 at 4:00 PM, Mel Wilson <mwil...@the-wire.com> wrote: >> > zigi wrote: >> >> >> Hello, >> >> M2crypto >> >> >> __init__(self, alg, key, iv, op, key_as_bytes=0, d='md5', >> >> salt='12345678', i=1, padding=1) >> >> >> I wont write app, using M2crypto and I can not understand what are the >> >> arguments: >> >> key, iv, op, salt ? >> >> What they do ? >> >> > I assume you're reading in <http://www.heikkitoivonen.net/m2crypto/api/> >> > about M2Crypto.EVP.Cipher. >> >> > Epydoc claims another victim. >> >> > I'm having a lot of trouble finding documentation. The obvious OpenSSL >> > pages are kind of thin, too. You might see some useful code in the EVP unit >> > tests m2crypto/tests/test_evp.py in the m2crypto installation. >> >> Not intending to be rude, but being perfectly serious: as a general >> rule, if you don't know what an IV is you're probably getting yourself >> into a lot of trouble working with low-level crypto libraries. >> >> Two suggestions: >> >> 1. Describe what you're trying to do- I'll be able to help more if I >> know what you're actually going for. >> >> 2. Try keyczar. It's not perfect, but it's a lot easier to get right. >> >> Geremy Condra > > -- > http://mail.python.org/mailman/listinfo/python-list
[toc] | [prev] | [next] | [standalone]
| From | zigi <cezar4846@gmail.com> |
|---|---|
| Date | 2012-02-13 14:38 -0800 |
| Message-ID | <3a2a0af8-9340-401d-89c7-229fee86aa4c@db5g2000vbb.googlegroups.com> |
| In reply to | #20375 |
Ok, thanks. On 13 Lut, 23:27, geremy condra <debat...@gmail.com> wrote: > On Mon, Feb 13, 2012 at 12:37 AM, zigi <cezar4...@gmail.com> wrote: > > Hello, > > this is must be testing time to crypt files, using just M2crypto :-) > > I know this is a strange use of the library, but such is the will of > > the management. > > I take it you mean that you're benchmarking file encryption > performance using M2Crypto? If your only goal is to do exactly that > then go for it, but otherwise you're probably using the wrong tool for > the job. > > Geremy Condra > > > > > > > > > On 13 Lut, 01:28, geremy condra <debat...@gmail.com> wrote: > >> On Sun, Feb 12, 2012 at 4:00 PM, Mel Wilson <mwil...@the-wire.com> wrote: > >> > zigi wrote: > > >> >> Hello, > >> >> M2crypto > > >> >> __init__(self, alg, key, iv, op, key_as_bytes=0, d='md5', > >> >> salt='12345678', i=1, padding=1) > > >> >> I wont write app, using M2crypto and I can not understand what are the > >> >> arguments: > >> >> key, iv, op, salt ? > >> >> What they do ? > > >> > I assume you're reading in <http://www.heikkitoivonen.net/m2crypto/api/> > >> > about M2Crypto.EVP.Cipher. > > >> > Epydoc claims another victim. > > >> > I'm having a lot of trouble finding documentation. The obvious OpenSSL > >> > pages are kind of thin, too. You might see some useful code in the EVP unit > >> > tests m2crypto/tests/test_evp.py in the m2crypto installation. > > >> Not intending to be rude, but being perfectly serious: as a general > >> rule, if you don't know what an IV is you're probably getting yourself > >> into a lot of trouble working with low-level crypto libraries. > > >> Two suggestions: > > >> 1. Describe what you're trying to do- I'll be able to help more if I > >> know what you're actually going for. > > >> 2. Try keyczar. It's not perfect, but it's a lot easier to get right. > > >> Geremy Condra > > > -- > >http://mail.python.org/mailman/listinfo/python-list
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web