Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Project: RSAEncryption
Views: 52
def ASCIIPad(Message): K = (map(ord,reversed(Message))); print(K); le= len(K); print(le); x = [100+K[i] for i in range(le)]; x = ZZ(x,1000); return(x);
M = "Bob, your public key is not secure!"; ASCIIPad(M);
[33, 101, 114, 117, 99, 101, 115, 32, 116, 111, 110, 32, 115, 105, 32, 121, 101, 107, 32, 99, 105, 108, 98, 117, 112, 32, 114, 117, 111, 121, 32, 44, 98, 111, 66] 35 166211198144132221211217214132212217198208205199132207201221132205215132210211216132215201199217214201133