ReleaseKit.Checksum (ReleaseKit v0.2.0)

Copy Markdown

Computes and writes checksums for release artifacts.

Summary

Functions

Computes a hexadecimal SHA-256 checksum for path.

Writes a checksum sidecar next to path and returns the sidecar path.

Types

algorithm()

@type algorithm() :: :sha256

Functions

sha256_file!(path)

@spec sha256_file!(Path.t()) :: String.t()

Computes a hexadecimal SHA-256 checksum for path.

write_sidecar!(path, checksum, algorithm \\ :sha256)

@spec write_sidecar!(Path.t(), String.t(), algorithm()) :: Path.t()

Writes a checksum sidecar next to path and returns the sidecar path.