1. key="CIPHERKEY"
  2.  
  3. Cipher="This Is The Cipher Text"
  4.  
  5. str("Decrypt")
  6. temp=0
  7. lengthkey=len(key)
  8. length=len(Cipher)
  9.  
  10. for i in range(length):
  11. if(temp<=lengthkey):
  12. Decrypt=(Cipher[i]-key[temp])%26
  13. temp+=1
  14. if (temp>lengthkey):
  15. temp=0
  16. print Decrypt
  17.