M2crypto

Z

zigi

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 ?
 
M

Mel Wilson

zigi said:
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.
 
G

geremy condra

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 EVPunit
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
 
Z

zigi

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.
 
G

geremy condra

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
 
Z

zigi

Ok, thanks.


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






 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,148
Messages
2,570,838
Members
47,385
Latest member
Joneswilliam01

Latest Threads

Top