Rewrite sha1 implementation
Rewrite scramble to use new sha1 implementation
Replace `std::vec` with `std::slice`
Update for rust 0.10