module

YandexDisk::Checksum

Constants

BUFFER_SIZE = 1024 * 1024

Class methods

md5_file(path : Path | String) : String

Streams path through MD5 so that a 40 GB dump costs 1 MB of memory.

MD5 is the only hash Yandex.Disk reports for every file, which is why it is used here despite being unfit for anything security-related.

Source