a native js function for hashing messages with the SHA-1 algorithm