Questions tagged [m2crypto]

M2Crypto is the most complete Python wrapper for OpenSSL featuring RSA, DSA, DH, HMACs, message digests, symmetric ciphers (including AES); SSL functionality to implement clients and servers; HTTPS extensions to Python's httplib, urllib, and xmlrpclib; unforgeable HMAC'ing AuthCookies for web session management; FTP/TLS client and server; S/MIME; ZServerSSL.

M2Crypto is the most complete Python wrapper for OpenSSL featuring RSA, DSA, DH, HMACs, message digests, symmetric ciphers (including AES); SSL functionality to implement clients and servers; HTTPS extensions to Python's httplib, urllib, and xmlrpclib; unforgeable HMAC'ing AuthCookies for web session management; FTP/TLS client and server; S/MIME; ZServerSSL.

271 questions
0
votes
0 answers

What object same as Signature (java.security.signature) on Python?

I want to verify ECDSA signature generate on android by using python. But I can't found object or any thing same as Signature object in Python. Here is my verify code if using Java String origin = txtOrigin.getText().toString(); try { sig =…
user8332899
0
votes
1 answer

ubuntu14.04,M2Crypto==0.25.1,openssl (1.0.1f-1ubuntu2.22) run django get undefined symbol: SSLv2_method

"docker build dockerfile when run 'python manage.py makemigrations' get 'undefined symbol: SSLv2_method'" Traceback (most recent call last): File "manage.py", line 10, in execute_from_command_line(sys.argv) File…
0
votes
0 answers

Python/SqlAlchemy computed columns using M2Crypto

I have two foreign tables in my postgres database that are 'related' not formally connected by a 'foreign key' (for security reasons), called Account and Profile. Account has a column called 'encrypted_UUID' and Profile has a column called 'UUID',…
0
votes
1 answer

Python 2.7 and M2Crypto - ImportError

I am using Python 2.7.10 and have installed M2Crypto. Importing the library like this: from M2Crypto import RSA but when running the python script I get this error: ImportError:…
user592638
0
votes
1 answer

M2Crypto RSA Alternative method for read key

Actually i read a .pem file with M2Crypto RSA, all works fine but becase the virtual enviroment and the incompatibility of this on SSLv2_method on Ubuntu and Gunicorn i need to read and sign with the same methodology my code works fine with: keys =…
Ulises
  • 406
  • 7
  • 22
0
votes
1 answer

Falcon python M2Crypto RSA Error

We have recently developed an API that uses RSA, the main problem is that in console it works correctly but once entering the "venv" of the application it show different errors. Traceback (most recent call last): File…
Ulises
  • 406
  • 7
  • 22
0
votes
1 answer

Symbol not found: _PEM_read_bio_EC_PUBKEY Importing M2Crypto-0.20.2 when compiled against openssl 0.9.8x or 1.0.0x

Importing M2Crypto version 0.20.2 on python 2.6.5 fails when M2Crypto was compiled against a recent openssl versions (0.9.8x or higher) on MAC OS X 10.4.11: Even though the compilation works against these openssl version, M2Crypto fails to import,…
0
votes
1 answer

Where should I store M2Crypto files

I am using pyCharm. I ran the windowss installer of M2CryptoWin64 from: https://pypi.python.org/pypi/M2CryptoWin64 I first navigated to the location where I downloaded the M2CryptoWin64 (different location than the python file) and typed this…
user2192774
  • 3,807
  • 17
  • 47
  • 62
0
votes
2 answers

How to use openssl to verify without creating files in python?

I am using OpenSSL to perform verification. openssl dgst -sha256 -verify public.pem -signature sign_file origin_file What I need to do is that if I know the content of sign_file and origin_file, how can I do the verify work in python without…
sting_roc
  • 233
  • 2
  • 15
0
votes
1 answer

Can't install M2Crypto into Linux mint Rafaela

I'm trying to install M2Crypto library with pip inside a virtualenv, but I just can't make it work, I have done sudo apt-get install python-dev and sudo apt-et install python-m2crypto already, they are in the system Also tried installing pip install…
NeoVe
  • 3,857
  • 8
  • 54
  • 134
0
votes
0 answers

M2Crypto segmentation fault in verifying sign

I'm trying to add a sign field to a json request before submit and verify it in response. What I do is I load key pair once in initialization then (according this gist) use following methods inside my class: import M2Crypto class…
VahidM
  • 287
  • 1
  • 2
  • 14
0
votes
2 answers

Verifying SAML signature with Python Flask

I have a Python Flask web app. I am integrating OKTA SAML in this app for authentication. I have followed the steps in: Validating SAML signature in python SAML signature verification using Python/M2Crypto However the validation always fails.…
0
votes
1 answer

From M2Crypto to pyCrypto

I'm trying to port an M2Crypto function to pyCrypto or any other solution, 'cause the last version of M2Crypto doesn't work with pypy. So, i'm trying to port an existing code from…
luisurrutia
  • 586
  • 6
  • 21
0
votes
1 answer

Python Mobile Test on AWS Device Farm (M2Crypto Issue)

I'm working on Python Image Recognition test for Android devices. It works on local; but when I try to build it for AWS, I always get the following error: copying M2Crypto\SSL__init__.py -> build\lib.win32-2.7\M2Crypto\SSL running build_ext …
Ekrem E.
  • 95
  • 10
0
votes
1 answer

Can not import M2Crypro for Mac OS X 10.10.5

I was trying to install M2Crypto but sudo pip install M2Crypto was giving following error: 850 warnings and 3 errors generated. error: command 'cc' failed with exit status 1 ---------------------------------------- Rolling back uninstall…
sau
  • 1,316
  • 4
  • 16
  • 37