Write Test Python Function Called Crypto Encrypt Decrypt Text Using Simple Letter Swap Cry Q37049879

Write and test a python function called crypto which willencrypt(and decrypt) text using a simple letter swap. crypto is tobe called with three parameters as crypto (x,n,enc), where x willbe a list of words (possible with punctuation marks), n will beinteger in the range 0 to 2000000, and enc will be a boolean value.Crypto will first seed the random generator with n. It will thencreate a random swap table for the letters of the alphabet. Forexample a -> w , b–>d, c–>a, d–>q etc. Capital mustfollow the same replacement.  


Solution


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.