Python Forum
Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cryptography in Python
#1
print("CryptoPrac-1a.")

for x in range(97, 123): # 97 starts the lowercase alphabet and 122 is z (ending)
  print(chr(x), end = ' ')
print('\n')
for x in range(97, 123):
  print(chr(x + 3), end = ' ')


print("\n CryptoPrac-1b.")
I am trying to add to the second part of this code. What I am trying to do is keep the shift by three but only this time I am trying to use the modulus operator. I am using the ASCII table but I don't know how to start a for loop to do what I want to do Sad .
Reply


Messages In This Thread
Cryptography in Python - by NLittle17 - Jan-10-2019, 10:59 AM
RE: Cryptography in Python - by Larz60+ - Jan-10-2019, 12:07 PM
RE: Cryptography in Python - by NLittle17 - Jan-10-2019, 12:09 PM
RE: Cryptography in Python - by Larz60+ - Jan-10-2019, 12:58 PM
RE: Cryptography in Python - by NLittle17 - Jan-13-2019, 03:40 PM
RE: Cryptography in Python - by Larz60+ - Jan-13-2019, 05:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [cryptography.io] How to convert DER signature to ECDSA fstefanov 1 3,057 Jul-04-2019, 08:59 AM
Last Post: fstefanov
  cryptography help jorrdn 3 3,146 Mar-10-2018, 02:29 PM
Last Post: sparkz_alot
  Python cryptography or pycrypto lexlukkia 4 57,111 Jan-25-2017, 12:08 PM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020