Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6103605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:44:52+00:00 2026-05-23T13:44:52+00:00

I am making a C#.NET application wherein I have designed an Administrator account. Now

  • 0

I am making a C#.NET application wherein I have designed an Administrator account. Now to Login in that account the Administrator has to enter the password.

My Question is : How do I save that password?

Possible options :

  1. Global variable (Obviously incorrect because it will be reset to its default value everytime I run the application)

  2. Database Relation (Feasible but it serves to be a scalar relation only….)

I don’t want to store it in a scalar relation because I think it is stupid to use a relation for only one entry and one column!

Is there any other optimum way to store the password?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T13:44:52+00:00Added an answer on May 23, 2026 at 1:44 pm

    You can store it salted and hashed in a user settings file.

    You can access the default settings file using something like:

    private bool CheckPassword(string salt, string password) 
    {
       var hash = Encoding.ASCII.GetBytes(salt + password);
       var sha1 = new SHA1CryptoServiceProvider();
       var sha1hash = sha1.ComputeHash(hash);
       var hashedPassword = ASCIIEncoding.GetString(sha1hash);
    
       return (Properties.Settings.Default.adminPass == hashedPassword);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

if i have a standard ASP.NET application, is there any difference between making an
Where is a good place to start with making an application in .NET that
I'm making a VB.NET application that needs to generate a number of different reports.
I was making a VB.NET application that can be used to edit, compile and
I'm going through some old C#.NET code in an ASP.NET application making sure that
I'm going through some old C#.NET code in an ASP.NET application making sure that
In an ASP.NET MVC application, I'm making logic for Admin to accept or reject
I'm making a VB.NET application with an SQL Server 2005 in the background. Naturally
I'm venturing into making my VB.NET application a little better to use by making
I'm working on a traditional ASP.NET application making WCF service calls. Should I put

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.