Make sha1 code run on old browsers
Stub out network functions