Module extra::sha1

An implementation of the SHA-1 cryptographic hash.

First create a sha1 object using the sha1 constructor, then feed it input using the input or input_str methods, which may be called any number of times.

After the entire input has been fed to the hash read the result using the result or result_str methods.

The sha1 object may be reused to create multiple hashes by calling the reset method.

Structs

Sha1

Structure representing the state of a Sha1 computation