0 Replies - 1422 Views - Last Post: 11 January 2012 - 09:16 PM

#1 Vblaster   User is offline

  • New D.I.C Head
  • member icon

Reputation: 1
  • View blog
  • Posts: 18
  • Joined: 16-January 11

Rot13

Posted 11 January 2012 - 09:16 PM

Description: rot13(#your string)Rot13 cipher.
from string import *
def rot13(string1):
	intab = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
	outtab = "nopqrstuvwxyzabcdefghijklmNOPQRSTUVWXYZABCDEFGHIJKLM"
	trantab = maketrans(intab, outtab)
	transs=string1.translate(trantab)
	return transs

Is This A Good Question/Topic? 0
  • +

Page 1 of 1