Ask Your Question
1

cryptographic hash function

asked 2019-04-12 14:10:51 +0100

KatinkaBou gravatar image

Hello, I'm writing a Sage program to implement a Public Key Cryptographic scheme and I need a cryptographic hash function that takes as input a binary string of a given size d_domain and outputs a binary string of a given size d_range. I read the documentation of the package Crypto.Hash, but I don't understand how to use the hash functions there. Can someone help me? Example parameters are: d_domain = d_range = 256

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-04-12 20:33:50 +0100

nbruin gravatar image

I think that's an external library, and https://pypi.org/project/pycrypto/ may be the project page for it. The documentation there should help you along.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2019-04-12 14:10:51 +0100

Seen: 2,384 times

Last updated: Apr 12 '19