Skip to main content

Questions tagged [pycrypto]

PyCrypto - The Python Cryptography Toolkit is a package that contains various cryptographic modules for the Python programming language.

Filter by
Sorted by
Tagged with
1 vote
1 answer
303 views

How do I verify a signature using DSA and my own "y" value in Python?

I have to verify a signature using DSA FIPS 186-2 (I know it is not used anymore, but I need to make it work for a legacy system). My problem is I have the "y" DSA value, but I cannot work out how I ...
Tobie van der Merwe's user avatar
3 votes
2 answers
3k views

PyCrypto Possible To Check If File Already AES Encrypted?

import os, random, struct from Crypto.Cipher import AES def encrypt_file(key, in_filename, out_filename=None, chunksize=64*1024): """ Encrypts a file using AES (CBC mode) with the given ...
Boris Daka's user avatar
1 vote
2 answers
1k views

File encryption for a storage API

I'm implementing a Dropbox-like API, and one of my requirements is to have the files stored encrypted on the server. It is not required that the files are made unreadable by the server, only that they ...
ThemCrookedVultures's user avatar
2 votes
1 answer
3k views

How to implement authenticated encryption using pycrypto or a python library?

I'm using pycrypto to encrypt files that will be stored in the cloud. I expect the user to enter a password to decrypt files, but encryption shouldn't require a password (to allow the script to be run ...
Andrew's user avatar
  • 43
6 votes
4 answers
7k views

MySQL AES_ENCRYPT key length

AES_ENCRYPT uses a 128 bit long key to encrypt the data, but how MySQL handle longer or shorter keys? I found out that PyCrypto for instances recomend to transform the key by using MD5, SHA-1, SHA-2, ...
joecks's user avatar
  • 419