some number conversions
added sha1 and read all bytes from stream to io util