#pragma once #include #include namespace coding { class SHA1 { public: static size_t constexpr kHashSizeInBytes = 20; using Hash = std::array; static Hash Calculate(std::string const & filePath); static std::string CalculateBase64(std::string const & filePath); static Hash CalculateForString(std::string const & str); // String representation of 40-number hex digit. static std::string CalculateForStringFormatted(std::string const & str); static std::string CalculateBase64ForString(std::string const & str); }; } // coding