提供更多文本转换模式

This commit is contained in:
zsyg
2025-07-19 20:13:01 +08:00
committed by GitHub
parent 11df47ff2e
commit 0e90195f9a
12 changed files with 275 additions and 13 deletions

View File

@@ -0,0 +1,13 @@
#ifndef SHA224CONVERTER_HPP
#define SHA224CONVERTER_HPP
#include "Converter.hpp"
#include <string>
class SHA224Converter : public Converter {
public:
std::string convert(const std::string& input) override;
std::string getName() const override { return "SHA224"; }
};
#endif // SHA224CONVERTER_HPP

View File

@@ -0,0 +1,13 @@
#ifndef SHA384CONVERTER_HPP
#define SHA384CONVERTER_HPP
#include "Converter.hpp"
#include <string>
class SHA384Converter : public Converter {
public:
std::string convert(const std::string& input) override;
std::string getName() const override { return "SHA384"; }
};
#endif // SHA384CONVERTER_HPP

View File

@@ -0,0 +1,13 @@
#ifndef SHA3CONVERTER_HPP
#define SHA3CONVERTER_HPP
#include "Converter.hpp"
#include <string>
class SHA3Converter : public Converter {
public:
std::string convert(const std::string& input) override;
std::string getName() const override { return "SHA3"; }
};
#endif // SHA3CONVERTER_HPP

View File

@@ -0,0 +1,13 @@
#ifndef SHA512CONVERTER_HPP
#define SHA512CONVERTER_HPP
#include "Converter.hpp"
#include <string>
class SHA512Converter : public Converter {
public:
std::string convert(const std::string& input) override;
std::string getName() const override { return "SHA512"; }
};
#endif // SHA512CONVERTER_HPP

View File

@@ -5,6 +5,18 @@
#include "Converter.hpp"
#include "BinaryConverter.hpp"
#include "HexConverter.hpp"
#include "ROT13Converter.hpp"
#include "MD5Converter.hpp"
#include "SHA1Converter.hpp"
#include "SHA256Converter.hpp"
#include "SHA224Converter.hpp"
#include "SHA384Converter.hpp"
#include "SHA512Converter.hpp"
#include "SHA3Converter.hpp"
#include "Base64Converter.hpp"
#include "Base32Converter.hpp"
#include "Ascii85Converter.hpp"
#include "CRC32Converter.hpp"
class Utils {
public: