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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:31:05+00:00 2026-05-25T18:31:05+00:00

Should I create the password column as a regular varchar and then insert like

  • 0

Should I create the password column as a regular varchar and then insert like this:

sha1($pass_string)

Or should I do something extra upon the creation of the table to make sure that password field is secure?

Thanks!

  • 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-25T18:31:06+00:00Added an answer on May 25, 2026 at 6:31 pm

    It’s a normal varchar field (40 characters) but if you want to set it more secure you should use salt.

    http://highedwebtech.com/2008/04/25/season-your-passwords-with-some-salt/

    Update :

    WARNING : Hash password without salt is REALLY WEAK ! You should never use it !!

    Password salting is the good way for doing it :
    password salting

    as adviced by pst :

    • using SHA-1 and salt is the more naive but quite well secure approach.

    • using bcrypt :

    it’s the more secure approach 🙂 because it use speed in order to make it more secure, bfish is a hash function built around the encryption method blowfish. (Seems than twofish exists too and should be the “modern” version of blowfish).

    • using HMAC-SHA1 :

    It’s a version using a chain of SHA-1 so it’s a intermediate solution, but allowing to set speed to your needs. In fact speed make weaker your security.

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

Sidebar

Related Questions

I have this code which should create a splash image with either no animation
I have three tables...users, user_info, and quota_levels. They look like this: CREATE TABLE users
I want to create a password-protected android application. The password should be asked when
I want to create a table that has a birthday date, this column shouldn't
I'm trying to decide whether I should create a simple StackPanel with Buttons on
I'm wondering whether I should create extension methods that apply on the object level
I'm learning MVC and am having trouble deciding when I should create a new
I have the following code, that in my head should create a new row
Should I create two CFile objects and copy one into the other character by
SHould I create a separate class for each object in an aggregate or should

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.