Skip to content

Instantly share code, notes, and snippets.

Avatar

Wilson Wong wwong

View GitHub Profile
@wwong
wwong / decomprewave.py
Last active Mar 26, 2017
Solution to Comprevawe from VolgaCTF Quals 2017
View decomprewave.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from math import log2, ceil
import numpy as np
from skimage.io import imread, imsave
import pywt
def processData(fs, sizeW, sizeH, mode = 'symmetric'):
coeffs = fs[:int(sizeW), :int(sizeH)]
cA = coeffs[:int(sizeW/2), :int(sizeH/2)]
You can’t perform that action at this time.