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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T11:30:48+00:00 2026-05-30T11:30:48+00:00

I am using following way to encrypt user’s passwords which is AES Encryption. I

  • 0

I am using following way to encrypt user’s passwords which is AES Encryption. I just want to know is this a good practice or is there any other method should I follow. Because someone made me confused saying “Why don’t you use “SALT”. Can I use SALT AES Encryption? with Bellow is a sample query I am using.

INSERT INTO user(id,passowrd) VALUES (1,AES_ENCRYPT('mypassword','key'));
  • 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-30T11:30:49+00:00Added an answer on May 30, 2026 at 11:30 am
    • I hope your database column isn’t named “passowrd”.

    That aside..

    Salt isn’t an encryption method, it’s a random bit you need to add to each password before hashing to protect against dictionary attacks.

    You should not be storing user passwords using AES encryption, which is reversible. You don’t care what the user’s password is, only that they know it: so don’t store the password in a reversible form.

    Instead, you use a secure one-way hash, such as SHA256 or even bcrypt, of the password plus some random data. This random junk, the “salt”, is generated for each user and appended to the password before hashing. It is then stored in the database along with the hashed data to enable you to compare the passwords later.

    This way, an attacker with what’s called a rainbow table (a big dictionary of hash-to-plaintext mappings) can’t come along and see “oh look, Joe User decided to make his password ‘password’!”. This also protects against someone brute-forcing all the passwords in your database, since if each account has its own independent salt, each password must be independently attacked.

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

Sidebar

Related Questions

I am using the following class written by Mark Brittingham for two way AES
In my Access VBA I have hyperlink, which is using the following way to
I know I can convert SQL timestamp to unix timestamp, using the following way.
I tried to reuse the .pch to speed the build using the following way:
I've been using ShowDialog() in following way for all my new Windows. SomeGui test
Is there a way to do the following using LINQ? foreach (var c in
Using C# I was trying to develop the following two. The way I am
I'm using ereg in the followin way to validate a field which can contain
I am converting Base64 code to image and I am using following way to
I am using the following way to cout a function's time: #define TIME_COST(message, ...)\

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.