Calculates the SHA-1 hash of the given stream, closing it when finished.
Calculates the SHA-1 hash of the given resource.
Calculates the SHA-1 hash of the given file.
Calculates the SHA-1 hash of the given Array[Byte].
Calculates the SHA-1 hash of the given String.
If the URI represents a local file (the scheme is "file"), this method calculates the SHA-1 hash of the contents of that file.
If the URI represents a local file (the scheme is "file"), this method calculates the SHA-1 hash of the contents of that file. Otherwise, this methods calculates the SHA-1 hash of the normalized string representation of the URI.
Converts the provided hexadecimal representation hex
to an array of bytes.
Converts the provided hexadecimal representation hex
to an array of bytes.
The hexadecimal representation must have an even number of characters in the range 0-9, a-f, or A-F.
Computes the SHA-1 hash of s
and truncates the hexadecimal representation of the hash via halve.
Truncates the last half of s
if the string has at least four characters.
Truncates the last half of s
if the string has at least four characters. Otherwise, the original string is returned.
Converts an array of bytes
to a hexadecimal representation String.
Computes the SHA-1 hash of s
and returns the first i
characters of the hexadecimal representation of the hash.