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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T17:19:03+00:00 2026-06-18T17:19:03+00:00

I am making a chat program for fun, and I decided to add in

  • 0

I am making a chat program for fun, and I decided to add in encryption. However, I am new to this, so what I was wondering is, is this cryptographically secure, and is this a good way to do things?

This is logging in:

Start:

Client sends username

If the user exists, the server sends the stored salt for the user

The client then sends SHA-2 hashed (Salt + Plaintext password)

The server compares it to the stored hashed result of the salt + the password, and if it’s the same then the user has logged in sucessfully, and from there on the encryption is AES.

End

Any faults? I don’t think there is, but I’d hate to go along and make the program only to be told that the encryption doesn’t work! Also, anyone got any good links to further reading on cryptography?

  • 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-18T17:19:04+00:00Added an answer on June 18, 2026 at 5:19 pm

    This isn’t secure against attacks on your database/servers, and actually seems to defeat the purpose of using salted hashes. If the client sends back a salted hash in place of their password, then that is essentially the same as their password.

    If an attacker compromises your database, they don’t have to brute force anyone’s password to log in, they just use the salted hash and they can be anyone they want to be.

    If you are using SSL, you can send the plaintext password over the encrypted wire, and hash at the server. Then an attacker has to brute force the hash or attack the SSL channel.

    also, use PBKDF2, bcrypt or scrypt as your password hashing algorithm, instead of SHA-2. You want something that resists brute force attacks.

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

Sidebar

Related Questions

This is similar to my last question. I'm making a simple tcp/ip chat program
Hey guys I'm making a chat program and I have a parent MessagePacket class
I am in the processes of making a Chat Program in Java in style
I'm making a simple chat program for me and my friends as a tech
I'm making a chat which is based on long polling (something like this )with
I am making this chat app with works with a .php file on my
Im making a chat program that saves the messages in files like pub0.zzc, all
I'm making a simple cross platform chat program. I'm using wXWidgets for the GUI
I'm making a chat program in Visual Basic. It's supposed to be for LAN,
I'm making a chat program, and I need a place to store messages. The

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.