Skip to content

Instantly share code, notes, and snippets.

@jneves
Created November 4, 2011 10:48
Show Gist options
  • Save jneves/1339089 to your computer and use it in GitHub Desktop.
Save jneves/1339089 to your computer and use it in GitHub Desktop.
#! /usr/bin/env python
import string
line = "uhifjuhxzxfrrevuweyoj6578chwo91tyux386c09c794l5m85p99387591890"
alphabet = string.ascii_lowercase
digits = string.digits
num = 13
str=""
for x in line:
if x in string.ascii_lowercase:
str += alphabet[(alphabet.index(x) + num)%len(alphabet)]
else:
str += digits[(digits.index(x) + num - 2)%len(digits)]
num -= 1
num %= len(alphabet)
print "%s://%s.%s/%s/%s/%s/%s" % (str[0:5], str[5:13], str[13:15], str[15:21], str[21:25], str[25:30], str[30:])
@defer
Copy link

defer commented Nov 4, 2011

num=13, num_d=7. Just saying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment