Decipher the signatures properly

Algorithms are ported from https://github.com/rb2k/viddl-rb

This should ultimately fix all of the 403 Errors