Created
April 7, 2012 05:07
-
-
Save yamanyar/2325418 to your computer and use it in GitHub Desktop.
resolving in python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# Rewrite URL Script for Secure Web Issue | |
# author: Kaan Yamanyar | |
from Crypto.Cipher import DES | |
from datetime import datetime, timedelta | |
import sys | |
import re | |
import base64 | |
def parseToken(str): | |
cipher = DES.new('oldhouse',DES.MODE_CFB, 'houseold') | |
resolved=cipher.decrypt(base64.b64decode(str)) | |
return resolved | |
#... code goes on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment