Class UrlDigest
java.lang.Object
io.github.intisy.gradle.github.utils.UrlDigest
SHA-256 hashing shared by every cache that is keyed by a hash of a URL rather than the URL
itself, so a credential embedded in the URL never has to be written to a cache path.
-
Method Summary
-
Method Details
-
sha256Hex
- Parameters:
value- the string to hash, encoded as UTF-8.- Returns:
- the hex-encoded SHA-256 of
value.
-
sha256Hex
- Parameters:
file- the file whose content to hash.- Returns:
- the hex-encoded SHA-256 of
file's content. - Throws:
IOException- iffilecannot be read.
-