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 8902183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:32:55+00:00 2026-06-15T01:32:55+00:00

I have a requirement to allow users to use a 4+ numeric pin style

  • 0

I have a requirement to allow users to use a 4+ numeric pin style password on a single device. Obviously this is a bad password to be used directly to protect their server side account, so I want to ‘lock’ this PIN to the specific device, so that someone must have both the PIN and device to login, and where gaining access to the device does not give access to the PIN. Also, they already have a more conventional username/pw login, and by signing up on a device they are adding a new set of login credentials to this existing account. So this is my current plan:

  1. During the local device signup process, locally generate a strong password.
  2. Send this generated strong password to the server as their server-side device specific account password.
  3. Use their supplied 4+ digit password to locally symmetrically encrypt the strong generated password.
  4. Store this encrypted strong password on the local device.
  5. During subsequent logins on that device, the user supplies the same 4+ digit password, it is used to decrypt the previously stored strong password, and the strong password is sent off to the server for login.

So I believe this achieves the strong server side password requirement. However I also need to protect as best I can against compromised client devices after the signup process (devices compromised before/during the signup process are a lost cause). Obviously with a 4 digit encryption key, there are only 10,000 possible combinations, so an attacker will easily be able to try every combination on the locally encrypted strong password very quickly. What I want to know is do I have to choose a specific symmetric encryption scheme and/or generated password format so that the attacker will not be able to tell from local data alone which of the 10k decryption attempts was the correct one? i.e. He would still have to attempt each of the 10k passwords on the server-side login.

Also, is there anything glaringly wrong with this approach, or a more standard approach to achieving these requirements? If there is a standard approach, is there a standard .NET library for this approach?

  • 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-06-15T01:32:57+00:00Added an answer on June 15, 2026 at 1:32 am

    You could store a salt in the local device and calculate key1 using PBKDF2. Then use that key server side to calculate key2, using a separately stored salt. As key1 is never stored, the attacker does not have the required information.

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

Sidebar

Related Questions

I have a requirement to allow users to open word document from web page
I have a requirement to allow users to browse directories on our file server,
I have a requirement to allow users in a content management system to create
I have requirement where I need to allow users to upload a Word document
I have a web page that has a requirement to allow users to paste
I have a requirement to allow access to an app with users being authenticated
I have a requirement to allow the user specify, at time of first use,
I have a requirement to allow users of the web site to see the
I have a requirment to allow Drag and Drop with out using HTML5. This
I have requirement to disable copy/paste/cut operations on a textbox. For this purpose I

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.