generates sha1 hash from string at ubuntu