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

  • SEARCH
  • Home
  • 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 3225892
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:23:31+00:00 2026-05-17T16:23:31+00:00

I need to password protect my application but need advice on where to store

  • 0

I need to “password protect” my application but need advice on where to store the password securely.

How I intend to do this:

The first time the program is run, I will prompt the user to create a password. The password will be salted and hashed in SHA-256 then stored in either the Registry or a file.

The Problem:

If I store the hashed password in the registry or a file (or both) then it would be too easy for someone to just delete the Key in the Registry or the File and be prompted to create a new password…

How can I securely store the hashed password so that it makes it harder to be deleted?

I have thought about storing it in the Registry and also creating a file with the Hidden and System Attributes to read from in the event of the Registry file being deleted but this seems silly as it could also be deleted quite easy.

// I hope I have posted this question correctly with the right Tags – I am new here so please go easy! 😉

All the best

Chris (Shamballa)

  • 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-17T16:23:32+00:00Added an answer on May 17, 2026 at 4:23 pm

    This is basically a Programming Ethics 101 issue. If you’re storing information on someone else’s computer, remember that the computer is their property and they have the right to delete or modify any file or registry key on it. Trying to make it so that they can’t is a very bad idea.

    There’s a good reason why you can’t do it. What would happen if someone started putting files that you can’t delete or modify on your computer? Extrapolate to the logical conclusion: What would happen if a virus started putting files that you can’t delete or modify on your computer, and did so in an infinite loop until the hard drive was full? You know if it was possible, someone would try it.

    If you want a program that stores a password somewhere where the user can’t modify it, put it on your server and have your program contact it over an Internet connection. (Which is an entirely different can of worms, but at least you’re not trying to do impossible things or violate your users’ basic property rights anymore.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to write a script which will post username and password onto a
I have an iOS application that authenticates to a Rails application. The first time
I am working on a registration form where I need to encrypt password, I've
I am new to ruby. I need to receive password as an input through
I need to verify a password using reqex. I have written one and tested
I need to compare the password entered by the user if it is valid
I need to hash (MD5) all the password in our Sql Server 2000 database.
I need to redirect users to the Change Password page if their password has
I need to enforce the following password policy : at least 9 characters, with
I need a regex that allow user to insert a password in a field.

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.