Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

TypeError: unable to find a common ring for all elements

import hashlib import binascii from sage.crypto.util import ascii_integer bin = BinaryStrings() k1 = hashlib.sha224(b"Nobody inspects the spammish repetition").hexdigest() k2 = hashlib.sha224(b"Nobody inspects").hexdigest() A = bin.encoding(k1) B = bin.encoding(k2) A = list(A) B = list(B) A = Matrix([[A],[B]])