OskaRRRitoS

Untitled

Oct 17th, 2021
955
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for i, letter in enumerate(text):
  2.     letter_value = alphabet.index(char)
  3.  
  4.     key_index = i % 5
  5.     key_letter = key[key_index]
  6.  
  7.     key_value = alphabet.index(key_letter)
  8.     cipher_value = (char_value + key_value) % 26
  9.     cipher_letter = alphabet[cipher_value]
  10.  
  11.     encyptedtext.append(cipher_letter)
RAW Paste Data