pycrypto Questions

4

Solved

I am working with pycrypto. It works fine on my local windows machine, but when I move it to my python box I get an error with importing the module: from Crypto.Cipher import ARC4 ImportError: N...
Berhley asked 5/2, 2015 at 22:35

7

I was trying to create a Bybit Trading bot and when I started testing it it stopped working and it keeps throwing the same error(10003) Invalid API key. I have checked it several times and it was c...
Woll asked 12/3, 2022 at 16:17

8

Solved

I'm trying to get pycrypto installed in Windows. At the command prompt, I type python setup.py build. Things start out OK, but when it gets to 'running build_configure', I get this error message an...
Rosenbaum asked 8/7, 2012 at 5:42

35

Solved

When I try to run app.py (Python 3.3, PyCrypto 2.6) my virtualenv keeps returning the error listed above. My import statement is just from Crypto.Cipher import AES. I looked for duplicates and you ...
Farmyard asked 27/10, 2013 at 20:39

6

I cannot find anything on this. I'm getting error: Traceback (most recent call last): File "/path/to/pwdb.py", line 265, in <module> password_db() File "/path/to/pwdb.py&quo...
Contrail asked 14/1, 2022 at 2:31

20

Solved

I've read every other google source and SO thread, with nothing working. Python 2.7.3 32bit installed on Windows 7 64bit. Download, extracting, and then trying to install PyCrypto results in "Unab...
Corporal asked 10/7, 2012 at 1:44

17

I have written code to generate public and private keys. It works great at Python 3.7 but it fails in Python 3.8. I don't know how it fails in the latest version. Help me with some solutions. Her...
Shipper asked 26/10, 2019 at 8:51

14

Solved

I just ran the following command: pip install -U steem and the installation worked well until it failed to install pycrypto. Afterwards I did the pip install cryptography command because I though...
Salad asked 6/7, 2017 at 14:15

9

Solved

I encountered a problem when I try to download a certain package: C:\Python27\Scripts>pip install pycrypto Collecting pycrypto Using cached https://files.pythonhosted.org/packages/60/db/645aa9...
Tinytinya asked 28/4, 2018 at 19:47

3

Can someone tell me how to add a padding to the data to make it acceptable for AES256 encryption algorithm in pycrypto library (Python). Thanks a lot in advance.. :)
Copp asked 21/1, 2010 at 9:18

16

Solved

I'm trying to build two functions using PyCrypto that accept two parameters: the message and the key, and then encrypt/decrypt the message. I found several links on the web to help me out, but each...

2

When installing Pycrypto, a compiler error occurs I need to install Pycrypto thrue pip install C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\...
Shermy asked 11/1, 2019 at 7:56

1

I am communicating with our clients server. For an api I need to sign a string with my private key. They have the following condition to follow User SHA 256 algorithm to calculate the hash of the...
Camarata asked 2/1, 2020 at 11:28

3

I am trying to install pyCrypto (by pip3 install pycrypto) , and I keep getting this error : Failed building wheel for pycrypto Running setup.py clean for pycrypto Failed to build pycrypto Insta...
Mccain asked 11/7, 2017 at 11:6

4

Solved

I was trying to understand and figure out if I should use os.urandom() or Crypto.Random.new() for cryptographically secure pseudo-random numbers. The following website seems to suggest to use os....
Somatotype asked 8/12, 2013 at 22:33

9

Solved

pip install pycrypto works fine with python3.5.2 but fails with python3.6 with the following error: inttypes.h(26): error C2061: syntax error: identifier 'intmax_t'
Different asked 25/1, 2017 at 4:14

3

Solved

I'm encrypting a string in a web application using CryptoJS (v 2.3), and I need to decrypt it on the server in Python, so I'm using PyCrypto. I feel like I'm missing something because I can't can i...
Taps asked 19/7, 2012 at 18:42

7

Solved

OpenSSL provides a popular (but insecure – see below!) command line interface for AES encryption: openssl aes-256-cbc -salt -in filename -out filename.enc Python has support for AES in the shape...
Levana asked 26/5, 2013 at 16:47

8

The RSA public key: pubkey = 'MIGfMA0GCSqGSIb3DQEBA3UAA4GNADCBiQKBgQC35eMaYoJXEoJt5HxarHkzDBEMU3qIWE0HSQ77CwP/8UbX07W2XKwngUyY4k6Hl2M/n9TOZMZsiBzer/fqV+QNPN1m9M94eUm2gQgwkoRj5battRCaNJK/23GGpCsTQa...
Suzansuzann asked 24/1, 2014 at 8:8

2

I'm trying to implement the following in Python: openssl enc -e -aes-256-cbc -base64 -k "Secret Passphrase" -in plaintext.txt -out ciphertext.txt openssl enc -d -aes-256-cbc -base64 -k "Secret Pas...
Sestet asked 17/12, 2012 at 3:17

4

Solved

Having looked at other similar threads, I still can't get pycrypto running. I'm trying to get it working on my Ubuntu laptop - but I couldn't manage it on my Windows PC either. I downloaded pycry...
Schaller asked 22/7, 2012 at 0:17

7

I need help using RSA encryption and decryption in Python. I am creating a private/public key pair, encrypting a message with keys and writing message to a file. Then I am reading ciphertext from...
Paries asked 5/5, 2015 at 15:8

3

Solved

I’m using PyCrypto 2.3 and I would like to save the keys I have generated into a file, so as to distribute them to the client and server. I can’t seem to find a way to print the keys correctly, nei...
March asked 8/2, 2012 at 16:33

5

Solved

I need to deterministically generate a randomized list containing the numbers from 0 to 2^32-1. This would be the naive (and totally nonfunctional) way of doing it, just so it's clear what I'm wa...
Chandra asked 1/7, 2017 at 5:52

7

Solved

I have installed pycrypto (version 2.3) to /usr/local/lib/python2.6/dist-packages/Crypto/ and I am able to see the Random package there. But when I try to import the Crypto.Random, it pomps me th...
Salerno asked 26/8, 2011 at 21:46

© 2022 - 2025 — McMap. All rights reserved.