adding some mroe util functions for sha1 generation