GetPassword.h 297 B

1234567891011121314151617
  1. /*
  2. * Copyright (c) 2020, Peter Elliott <pelliott@ualberta.ca>
  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. namespace Core {
  11. Result<String, OSError> get_password(const StringView& prompt = "Password: ");
  12. }