ASKSAGE: Sage Q&A Forum - Individual question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 12 Apr 2019 13:33:50 -0500cryptographic hash functionhttps://ask.sagemath.org/question/46110/cryptographic-hash-function/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
Fri, 12 Apr 2019 07:10:51 -0500https://ask.sagemath.org/question/46110/cryptographic-hash-function/Answer by nbruin for <p>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</p>
https://ask.sagemath.org/question/46110/cryptographic-hash-function/?answer=46113#post-id-46113I 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.Fri, 12 Apr 2019 13:33:50 -0500https://ask.sagemath.org/question/46110/cryptographic-hash-function/?answer=46113#post-id-46113