2020-07-25 20:38:55 -03:00
|
|
|
/*
|
2021-08-31 23:32:46 -03:00
|
|
|
* Copyright (c) 2020, Peter Elliott <pelliott@serenityos.org>
|
2020-07-25 20:38:55 -03:00
|
|
|
*
|
2021-04-22 05:24:48 -03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-07-25 20:38:55 -03:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2021-01-10 09:48:05 -03:00
|
|
|
#include <AK/OSError.h>
|
2020-07-25 20:38:55 -03:00
|
|
|
#include <AK/Result.h>
|
|
|
|
|
#include <AK/String.h>
|
2021-09-11 13:53:25 -03:00
|
|
|
#include <LibCore/SecretString.h>
|
2020-07-25 20:38:55 -03:00
|
|
|
|
|
|
|
|
namespace Core {
|
|
|
|
|
|
2021-09-11 13:53:25 -03:00
|
|
|
Result<SecretString, OSError> get_password(const StringView& prompt = "Password: "sv);
|
2020-07-25 20:38:55 -03:00
|
|
|
|
|
|
|
|
}
|