|
| | Password (std::string value) noexcept |
| | Construct from a std::string (copied byte-for-byte, then wiped).
|
| |
| | Password (const char *value) noexcept |
| | Construct from a C string (copied byte-for-byte up to the terminator).
|
| |
| | Password (const void *data, std::size_t size) noexcept |
| | Construct from raw bytes (exact size, no null terminator added).
|
| |
| | Password (const Password &other)=default |
| | Copy constructor.
|
| |
| | Password (Password &&other) noexcept=default |
| | Move constructor.
|
| |
|
| ~Password ()=default |
| | Destructor. Wipes the underlying buffer when this is the last owner.
|
| |
| Password & | operator= (const Password &other)=default |
| | Copy assignment operator.
|
| |
| Password & | operator= (Password &&other) noexcept=default |
| | Move assignment operator.
|
| |
| std::size_t | Size () const noexcept |
| | Length of the stored material in bytes.
|
| |
| bool | Empty () const noexcept |
| | Check whether the password is empty.
|
| |
| | operator bool () const noexcept |
| | Contextual conversion to bool.
|
| |
| bool | operator== (const Password &other) const noexcept |
| | Constant-time equality comparison.
|
| |
| bool | operator!= (const Password &other) const noexcept |
| | Inequality comparison.
|
| |
Secure, reference-counted container for passwords and binary key material.
Stores sensitive bytes inside a shared Helpers::SecureContent with automatic wipe when the last owner is destroyed.
- Copyable and movable (shared ownership of the same buffer).
- No public access to the raw bytes (library code uses a private helper).
- Binary constructors store the exact size; no trailing null is appended.
Creating unmanaged std::string copies of the content is strongly discouraged and would bypass the secure lifecycle of this class.