#include <password.h>
Definition at line 41 of file password.h.
◆ password_container() [1/5]
| tools::password_container::password_container |
( |
| ) |
|
|
noexcept |
◆ password_container() [2/5]
| tools::password_container::password_container |
( |
std::string && | password | ) |
|
|
noexcept |
◆ password_container() [3/5]
◆ password_container() [4/5]
| tools::password_container::password_container |
( |
const password_container & | | ) |
|
|
delete |
◆ password_container() [5/5]
| tools::password_container::password_container |
( |
password_container && | rhs | ) |
|
|
default |
◆ ~password_container()
| tools::password_container::~password_container |
( |
| ) |
|
|
noexcept |
Wipes internal password.
Definition at line 246 of file password.cpp.
247 {
248 m_password.clear();
249 }
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ password()
◆ prompt()
| boost::optional< password_container > tools::password_container::prompt |
( |
bool | verify, |
|
|
const char * | mesage = "Password", |
|
|
bool | hide_input = true ) |
|
static |
- Returns
- A password from stdin TTY prompt or std::cin pipe.
Definition at line 253 of file password.cpp.
254 {
258 if (is_cin_tty() ? read_from_tty(verify,
message, hide_input, pass1.m_password, pass2.m_password) : read_from_file(pass1.m_password))
259 {
261 return {std::move(pass1)};
262 }
263
265 return boost::none;
266 }
std::string message("Message requiring signing")
◆ is_prompting
| std::atomic< bool > tools::password_container::is_prompting |
|
static |
◆ max_password_size
| const size_t tools::password_container::max_password_size = 1024 |
|
staticconstexpr |
The documentation for this class was generated from the following files:
- /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/src/common/password.h
- /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/src/common/password.cpp