#ifndef OTPPASS_HH #define OTPPASS_HH #include #include #include class Otppass { public: std::string exec(std::string &file); private: std::vector extract_secret(const std::string &otpauth_url); #if defined(__HAIKU__) || defined(__linux) uint64_t htobe64(uint64_t counter); #endif uint32_t generate_totp(const std::vector &secret, uint64_t counter); }; #endif