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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:52:36+00:00 2026-06-01T15:52:36+00:00

I was sending an encrypted password (in md5) to a sql database. Accidentally, i

  • 0

I was sending an encrypted password (in md5) to a sql database. Accidentally, i sent an md5 encryption to an integer column. The password I entered was “test” and in my database it showed up as “5” then I did a password of “qwertyqwerty” and it showed up as “2147483647” Out of curiosity, can anyone explain to me what’s going on with this? Why are the int values so much different?

  • 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-01T15:52:37+00:00Added an answer on June 1, 2026 at 3:52 pm

    MD5 does not encrypt a password, it hashes it.

    A hash is a one-way function that takes a given input and creates a predictable output (that is, a given input will always have the same output), ideally such that even very similar inputs will yield vastly different outputs.

    MD5 hashes are 128 bits. If you try to write those 128 bits into a 32 bit SQL column, some truncation will certainly happen.

    Without understanding the specific code you used to generate the MD5, convert it to an integer, and then write it to SQL, it’s not possible to understand why in one case you got a small number, and in another you got the maximum value for a signed int. If you wish to post the code, I’m glad to comment on it.

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

Sidebar

Related Questions

Im interested in learning about sending an encrypted password from a form in php
When sending data over HTTPS, I know the content is encrypted, however I hear
I'm reading in a file and sending the data (once encrypted) to a dictionary,
I'm trying to connect to a website I made with auth that uses MD5.hex(password)
SITUATION: I need to make encryption happen between my remote database and my c#
I am trying to connect to a SQL Server 2008 database through a C#
I am working on a project that involves sending some very small encrypted messages
I'm looking at sending encrypted data between a Silverlight client and a native code
I am sending sensitive data encrypted when the user clicks the onclick event. This
I have data that is being encrypted and sent to another page, where it

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.