the system uses csharp and .net 4.8 framework. It combines the use of text-based and image-based password. It has a login, registration, logout and reset password pages
Loading
the system uses csharp and .net 4.8 framework. It combines the use of text-based and image-based password. It has a login, registration, logout and reset password pages
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Tuhin PaulRank #7 · 71.9K reputationPosted Mar 16, 2023, 9:21 PM EDT
This type of system is commonly used to provide secure access to online services or applications. By combining text-based and image-based passwords, the system can increase the security of user accounts and reduce the risk of unauthorized access.
Tuhin PaulRank #7 · 71.9K reputationPosted Mar 16, 2023, 9:28 PM EDT
Check out the following steps:
1) Set up a database to store user credentials and other necessary information. You can use a SQL database or any other type of database supported by C# and .NET framework.
2) Create a registration page where users can create their account and set up their login credentials. The registration page should include fields for the user's name, email address, and a password (text-based or image-based).
3) Store the user's credentials securely in the database. For example, if the user chooses a text-based password, you can store a hashed version of the password using a secure hashing algorithm like bcrypt or SHA-256. If the user chooses an image-based password, you can store the image file securely in the database.
4) Create a login page where users can enter their credentials to access the system. The login page should include fields for the user's email address and password (text-based or image-based).
5) When the user submits their login credentials, retrieve the corresponding user record from the database and check the entered password against the stored password (either by comparing hashed values or by comparing image files). If the passwords match, allow the user to access the system.
6) You can also create a reset password page where users can reset their password if they forget it or if their account has been compromised. This page should include steps to verify the user's identity (e.g., by sending an email to their registered email address) before allowing them to set a new password.
Tuhin PaulRank #7 · 71.9K reputationPosted Mar 19, 2023, 8:47 PM EDT
picture passwords using C#, you can use Windows Presentation Foundation (WPF) and the InkCanvas control.
using System.Windows; using System.Windows.Controls; using System.Windows.Ink; using System.Windows.Input; namespace MyApp { public partial class PicturePasswordWindow : Window { private StrokeCollection _drawnPattern; public PicturePasswordWindow() { InitializeComponent(); } private void InkCanvas_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { _drawnPattern = new StrokeCollection(); _drawnPattern.Add(new Stroke(new StylusPointCollection(new[] { e.GetPosition(inkCanvas) }))); } private void InkCanvas_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) { // Save the drawn pattern to a file or database // ... _drawnPattern = null; } private void InkCanvas_MouseMove(object sender, MouseEventArgs e) { if (e.LeftButton == MouseButtonState.Pressed) { if (_drawnPattern == null) { // The user has started a new stroke, so create a new StrokeCollection _drawnPattern = new StrokeCollection(); } // Add the current point to the stroke _drawnPattern.Last().StylusPoints.Add(e.GetPosition(inkCanvas)); } } private void CheckPasswordButton_Click(object sender, RoutedEventArgs e) { // Retrieve the saved pattern from a file or database // ... var savedPattern = new StrokeCollection(); // Compare the user's drawn pattern to the saved pattern if (_drawnPattern != null && savedPattern != null && _drawnPattern.EquivalentTo(savedPattern)) { // The patterns match, so allow the user to log in // ... } else { // The patterns don't match, so display an error message // ... } } } }