GetPassword.h 342 B

123456789101112131415161718
  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/OSError.h>
  8. #include <AK/Result.h>
  9. #include <AK/String.h>
  10. #include <LibCore/SecretString.h>
  11. namespace Core {
  12. Result<SecretString, OSError> get_password(const StringView& prompt = "Password: "sv);
  13. }