Programming Homework Help
Programming Homework Help. write simple python code in one file .. including hash functions and RSA ecryption
write simple python code… where the algorithm explained as following:
n= randome number —- > generate random number
n-encr= encryption(n) ….> (encryption using RSA)
print(“Server1 sends”, e-encr)
n-dec = decryption(n-encr) ….> (decryption of RSA)
print(“decryption of n is : “, n-dec)
n-hash = hash(n-dec) ….> (do hash to n-dec)
print(“hashing of decryption value is:”, n-hash)
print (“ send response to server 1 “)
if (n-hash == hash(n))
print (“server2 is available”)
else
print (“Failure”)