#!/usr/bin/env python # Decrypts the Tom-Skype 5.0.x - 5.1.x era keyfiles and outputs them in UTF-8 # Jeffrey Knockel jeffk cs unm edu # Usage: python decrypt.py < keyfile > plainfile import binascii import struct import sys from Crypto.Cipher import AES as Cipher KEY = '0sr TM#RWFD,a43 '.encode('utf-16le') def decrypt(key, hexcrypt): crypt = binascii.a2b_hex(hexcrypt.encode('ascii')) crypt = b''.join(crypt[i + 1:i + 2] for i in range(0, len(crypt), 2)) n, = struct.unpack('