Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import optparse
- (options, args) = optparse.OptionParser().parse_args()
- word = args[0]
- if len(args) > 1:
- offset = int(args[1], 16)
- else:
- offset = 0x1d4ea
- string = ""
- for char in word:
- if ord(char) == 32:
- char = ' '
- else:
- char = ord(char) - 65
- char = char + offset
- char = unichr(char)
- char = char.encode('utf-8')
- string = "%s%s" % (string, char)
- print string
Add Comment
Please, Sign In to add comment