COSMOS中的密码保护 [英] Password protection in COSMOS

查看:84
本文介绍了COSMOS中的密码保护的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿所有,我有一个快速的问题,就是在你的宇宙内核中输入密码。

Cosmos是一个用C#构建的开源操作系统。它是命令行或终端的格式。

我正在尝试制作一个******输出密码的程序。

这里是我想要它做的一个例子:



输入您的密码:*******************



我不需要GUI的格式,而是以终端的形式。

用户输入为星星而不是实际的文字。

有没有人有任何解决方案?

Hey all, I have a quick question for entering passwords into your cosmos kernel.
Cosmos is an open source OS built in C#. It is in the format of a command line or terminal.
I'm trying to make a program that ******'s out your password.
Here is an example of what I want it to do:

Enter your password: *******************

I don't need it the format of a GUI but rather in the form of a terminal.
The user input being the stars and not actual text.
Does anyone have any solutions?

推荐答案

我不知道COSMOS是什么。下一次,提供你正在谈论的内容的链接,这样每个人都在同一页面上。



记住,我们看不到你的显示器,内容你的硬盘,或读你的想法。





但是,有一个TextBox的PasswordChar属性。你所要做的就是将它设置为你想要的角色,你输入的任何东西都被那个角色所取代。
I have no idea what COSMOS is. Next time, provide a link to what you're talking about so everyone is on the same page.

Remember, we can't see your monitor, the contents of your hard drive, or read your mind.


But, there's a PasswordChar property of a TextBox. All you have to do is set that to the character you want and anything you type is replaced by that character.


这篇关于COSMOS中的密码保护的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆