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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T07:30:00+00:00 2026-06-10T07:30:00+00:00

Possible Duplicate: hash() vs. crypt() function comparison Recently I researched how to properly do

  • 0

Possible Duplicate:
hash() vs. crypt() function comparison

Recently I researched how to properly do password hashing in PHP. One of the better options is to use crypt(). But why wouldn’t we use hash()?

The main reason I am asking this is because I made a password hashing function that wraps crypt() and I am wondering what to name my function. Right now it’s named getHash(). But I feel funny using that name since I am wrapping crypt(). If I use getCrypt() that doesn’t sound great either because it’s meant to be a HASHING function. What should I name my hashing function that wraps crypt()?

  • 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-10T07:30:02+00:00Added an answer on June 10, 2026 at 7:30 am

    Hashing, as used by hash, is meant to verify data (like files), normally as a checksum sort of thing. It is fast, which is why we don’t use it for secure data.

    Crypt (when used correctly) uses a slow hashing algorithm. The reason a slow hashing algorithm is important is because it makes it difficult for someone to brute-force the hash. If the slow hashing algorithm takes even 0.1 milliseconds longer than the fast hashing algorithm, then trying 10000 passwords will take a second, and of course, brute-forcing would require millions of tries.

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

Sidebar

Related Questions

Possible Duplicate: What function to use to hash passwords in MySQL? Secure password storage
Possible Duplicate: Is there any hash function in PL/SQL? I have a column with
Possible Duplicate: Why is an MD5 hash created by Python different from one created
Possible Duplicate: Is “double hashing” a password less secure than just hashing it once?
Possible Duplicate: Will the MD5 cryptographic hash function output be same in all programming
Possible Duplicate: PHP:How to send the original password to the user when he clicks
Possible Duplicate: Secure hash and salt for PHP passwords I use the following code
Possible Duplicate: Hash Function .NET hi, I should write an app that take string
Possible Duplicate: Secure hash and salt for PHP passwords THREE part question: Which technique
Possible Duplicate: Can PHP read the hash portion of the URL? Hi, I want

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.