#pragma once #include #include #include namespace wowee { namespace auth { class Crypto { public: static std::vector sha1(const std::vector& data); static std::vector sha1(const std::string& data); /** * HMAC-SHA1 message authentication code * * @param key Secret key * @param data Data to authenticate * @return 20-byte HMAC-SHA1 hash */ static std::vector hmacSHA1(const std::vector& key, const std::vector& data); }; } // namespace auth } // namespace wowee