GetPassword.h 279 B

12345678910111213141516
  1. /*
  2. * Copyright (c) 2020, Peter Elliott <pelliott@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/Error.h>
  8. #include <LibCore/SecretString.h>
  9. namespace Core {
  10. ErrorOr<SecretString> get_password(StringView prompt = "Password: "sv);
  11. }