0
votes
1answer
35 views

how to decode a SSL certificate using python?

How to decoded an site's certifiate (from www.github.com:443). I know the following file is github's certificate on ssl using base64 encoded .but i don't know how to decode it to plantext. ...
0
votes
1answer
22 views

Decrypting 3DES data encrypted via another source

As part of a proof of concept I was given a bas64 encoded / Triple DES (MODE_ECB) encrypted string from a third party. I wrote a quick test knowing that the decrypted value should be "testdata", but ...
7
votes
2answers
517 views

AES in GCM mode in Python

Does anyone know of a python library or wrapper around a c library that will easily provide Authenticated AES via GCM mode? PyCrypto does not support it and it does not appear that PyOpenSSL ...
0
votes
1answer
34 views

Pair of secret tokens which can be checked for match easily

I am looking for a python module to create a pair of matching tokens with the following two properties: they can be checked for match it is impossible to obtain one token from the other PS: It is ...
1
vote
3answers
42 views

remember password functionality in python

basically, I want to have a login box, and the option to remember the password next time you log in. I know there are encryption modules out there, but they require a password to work in the first ...
2
votes
1answer
64 views

First 8 byes of my encrypted data corrupting using 3DES and CBC

I'm using PyCrypto in an application to encrypt data, but for some reason the first 8 bytes (corresponding to the first block) are coming through corrupt no matter what I do. >>> from ...
7
votes
5answers
2k views

Brute forcing DES with a weak key

I am taking a course on Cryptography and am stuck on an assignment. The instructions are as follows: The plaintext plain6.txt has been encrypted with DES to encrypt6.dat using a 64-bit key given ...
15
votes
4answers
4k views

Modular multiplicative inverse function in Python

Does some standard Python module contain a function to compute modular multiplicative inverse of a number, i.e. a number y = invmod(x, p) such that x*y == 1 (mod p)? Google doesn't seem to give any ...
2
votes
1answer
1k views

How to verify gnupg signature with Python gnupg module?

I have problem with verification signature with Python gnupg module. With this module I can encrypt and sign file: gpg.encrypt_file(stream, encrypt_for, sign=sign_by, passphrase=key_passwd, ...
1
vote
2answers
76 views

Is it possible for a sha512 hash to start with 64 zeros? [closed]

I was just thinking about numbers repeating in hashes and I was wondering if it was possible for half of a sha512 hash to consist of 64 consecutive zeros.
1
vote
3answers
316 views

Strange issue with AES CTR mode with Python and Javascript

I'm trying to decrypt a ciphertext created by CryptoJS using PyCrypto. I am using AES-256-CTR, with a 12-byte random prefix and 4-byte counter. So far, I've had limited success. Please read this ...
0
votes
3answers
132 views

Is AES-CTR in CryptoJS compatible with PyCrypto?

I'm trying to decrypt some AES-CTR-256 data using the PyCrypto library. The ciphertext was produced by the Cryptocat multiparty chat Javascript code, which relies on the CryptoJS library. The IV ...
1
vote
2answers
164 views

Python PyCrypto RSA Blind and Unblind

I am trying to perform blinding and unblinding on a hash. Following: https://gdata-python-client.googlecode.com/hg/pydocs/gdata.Crypto.PublicKey.RSA.html#RSAobj_c-unblind I have: messageHashed = ...
-3
votes
1answer
52 views

Initialize a PRNG with a password in python

I need to do the following steps in Python: Get a password from user Hash the input password. Seed a PRNG with that hash Generate a sequence of numbers Is there a safe way to do it? EDIT: Sorry ...
-1
votes
1answer
110 views

crypto analysis of my algo

import string,random,platform,os,sys def rPass(): sent = os.urandom(random.randrange(900,7899)) print sent,"\n" intsent=0 for i in sent: intsent += ord(i) print intsent ...

1 2 3 4 5 10
15 30 50 per page