From 77755b5cb3bd49ff14d5dc1845a36c7ad48da7fd Mon Sep 17 00:00:00 2001 From: Sky Johnson Date: Thu, 31 Jul 2025 21:41:41 -0500 Subject: [PATCH] switch to header file --- md5.cpp => md5.hpp | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) rename md5.cpp => md5.hpp (91%) diff --git a/md5.cpp b/md5.hpp similarity index 91% rename from md5.cpp rename to md5.hpp index 5351476..e360d35 100644 --- a/md5.cpp +++ b/md5.hpp @@ -1,3 +1,5 @@ +#pragma once + #include #include #include @@ -123,16 +125,4 @@ public: return result; } -}; - -int main() { - MD5 md5; - - std::cout << md5.hash("") << std::endl; - std::cout << md5.hash("a") << std::endl; - std::cout << md5.hash("abc") << std::endl; - std::cout << md5.hash("message digest") << std::endl; - std::cout << md5.hash("abcdefghijklmnopqrstuvwxyz") << std::endl; - - return 0; -} \ No newline at end of file +}; \ No newline at end of file