3#include <StormByte/crypto/crypter/generic.hxx>
11namespace StormByte::Crypto::Crypter {
53 inline const std::
string& Password() const noexcept {
65 std::
string m_password;
71 inline
Symmetric(enum Type type, const std::
string& password):
72 Generic(type), m_password(password) {}
81 STORMBYTE_CRYPTO_PUBLIC Generic::PointerType Create(
enum Type type,
const std::string& password)
noexcept;
A generic crypter class.
Definition generic.hxx:32
A generic symmetric crypter class.
Definition generic.hxx:16
Symmetric(Symmetric &&other) noexcept=default
Move constructor.
Symmetric(const Symmetric &other)=default
Copy constructor.
virtual ~Symmetric() noexcept=default
Virtual destructor.
static std::string RandomPassword(size_t length=32) noexcept
Generates a random password for symmetric encryption.