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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:03:33+00:00 2026-05-15T08:03:33+00:00

How can I easily salt a password from a Textbox.Text? Are there some built

  • 0

How can I easily salt a password from a Textbox.Text?

Are there some built in wizardry in the .NET framework?

  • 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-15T08:03:34+00:00Added an answer on May 15, 2026 at 8:03 am

    We had a great discussion a while ago about best practices when salting a password, you might find some great ideas there:

    Salting Your Password: Best Practices?

    I’ve found that one of the easiest, while still being fairly secure, is to use a GUID as your salt. It’s random and sufficiently long. It works best if you include the string formatting of the GUID (the ‘{‘ and ‘-‘ characters), but you don’t have to.

    Remember that the salt has to be unique per item salted and that to be most secure, you should use a cryptographically secure random number generator. Remember also that you have to store your salt along with the password, or you won’t be able to check the plaintext version against the hashed version! You can store the salt un-encrypted if you like; I typically put it in a field on the same table as the password. The purpose of the salt isn’t to remain hidden, it’s to make rainbow tables difficult (hopefully impossible) to compute in a timely manner.

    Here’s a quick snippet that will work in C#:

    RNGCryptoServiceProvider rng = new RNGCryptoServiceProvider();
    byte[] buffer = new byte[1024];
    
    rng.GetBytes(buffer);
    string salt = BitConverter.ToString(buffer);
    var saltedPassword = password + salt;
    

    or…

    var salt = Guid.NewGuid().ToString();
    var saltedPassword = password + salt;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can easily check IP addresses programmatically, but is there any way to set
From Eclipse I can easily run all the JUnit tests in my application. I
How can easily encode a string to utf8 using .NET (VB or C#)? For
In log4net i can easily set process id to to log file name from
While I can easily accomplish in ASP.NET using AddAt(), I am trying to do
You can easily enter a blob value using the x'abc' syntax, but is there
you can easily find focus() answers from the site or any site.. but what
I can easily do this in C#...but I need the equivalent in VB.Net. I
You can easily get the node/link attributes from a json file using the d3.js
I can easily select all comments from XML by select @XML.query('comment()') but can't find

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.