Building 70 Projects ranging from beginner to advanced so anyone can — learn from, build upon, use as a reference, or even copy directly. Owned by my cybersecurity company 👇
Go aicertificationcloud-engineeringcybercybersecuritycybersecurity-analystcybersecurity-certificationcybersecurity-certificationscybersecurity-educationcybersecurity-jobscybersecurity-portfoliocybersecurity-projectscybersecurity-toolsgrchackinglearningpentestingproject-repositoryprojetcspython
/*
©AngelaMos | 2026
HashDetector.hpp
Hash algorithm auto-detection by hex digest length
Connects to:
hash/HashDetector.cpp - implementation of detect()
core/Concepts.hpp - CrackError for invalid/unsupported hash errors
main.cpp - called when --type=auto (the default)
*/
#pragma once
#include "src/core/Concepts.hpp"
#include <expected>
#include <string_view>
enum class HashType { MD5, SHA1, SHA256, SHA512 };
class HashDetector {
public:
static std::expected<HashType, CrackError> detect(std::string_view hash);
};