Hash
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Hash.type
Members list
Value members
Concrete methods
Calculates the SHA-1 hash of the given String.
Calculates the SHA-1 hash of the given String.
Attributes
Calculates the SHA-1 hash of the given Array[Byte].
Calculates the SHA-1 hash of the given Array[Byte].
Attributes
Calculates the SHA-1 hash of the given file.
Calculates the SHA-1 hash of the given file.
Attributes
Calculates the SHA-1 hash of the given resource.
Calculates the SHA-1 hash of the given resource.
Attributes
Calculates the SHA-1 hash of the given stream, closing it when finished.
Calculates the SHA-1 hash of the given stream, closing it when finished.
Attributes
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.
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.
Attributes
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.
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.
Attributes
Truncates the last half of s
if the string has at least four characters. Otherwise, the original string is returned.
Truncates the last half of s
if the string has at least four characters. Otherwise, the original string is returned.
Attributes
Converts an array of bytes
to a hexadecimal representation String.
Converts an array of bytes
to a hexadecimal representation String.
Attributes
Computes the SHA-1 hash of s
and returns the first i
characters of the hexadecimal representation of the hash.
Computes the SHA-1 hash of s
and returns the first i
characters of the hexadecimal representation of the hash.