我正在使用C#为一个应用程序创建登录界面。在我的登录界面中,我正在从数据库中读取用户名和密码,并检查输入的用户名和密码是否正确。我需要在读取数据库中的密码时将其加密。有人能解释一下加密和解密的工作原理吗。
- Whether I have to store the encrypted value in the database for reading.
Right now I have two fields
column names: username password values: admin password
Should I store the encrypted value of the password in another field in the login table?