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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:00:51+00:00 2026-05-29T06:00:51+00:00

Which hash algorithm does Ruby’s String.crypt method use? When used in conjunction with a

  • 0

Which hash algorithm does Ruby’s String.crypt method use? When used in conjunction with a salt, is this secure enough for hashing passwords?

  • 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-29T06:00:52+00:00Added an answer on May 29, 2026 at 6:00 am

    No


    It uses the C library crypt() which is based on DES. This is a fast cipher.1.

    It’s not ideal for hashing passwords. The algorithm is reasonable as a cryptosystem although rather short on key length which is a problem for passwords. However, it has an even more fundamental weakness: it’s too fast.

    Good password hashing functions have a somewhat odd cipher requirement: they need algorithms that fundamentally require many complex operations, not just a handful of XOR ops and some table lookups like DES does.

    It is, btw, almost always a bad idea to roll your own password system. It’s better to use existing packages on the theory that these have been subject to review. It requires a certain amount of subject matter expertise to cook up a good one.

    And finally, you have asked a question that our fearless leader here on SO has written about! See: The Dirty Truth About Web Passwords.


    1. Note that even if it were implemented in Ruby the speed would still be a problem: it’s fundamentally a fast algorithm so an attacker could use his own implementation for key searching.

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

Sidebar

Related Questions

I have a string which looks like a hash: { :key_a => { :key_1a
i have a long running function¹: public string FindPasswordFromHash(String hash) { ... } which
Are there any known hash algorithms which input a vector of int's and output
I have a hash in which I store the products a customer buys (
Rails comes with a handy session hash into which we can cram stuff to
What I can think of is: Algo: Have a hash table which will store
Which Join having more I/O and CPU Cycle ? Hash join or Merge join
I have an object for which I want to generate a unique hash (override
Assume a nested hash structure %old_hash .. my %old_hash; $old_hash{foo}{bar}{zonk} = hello; .. which
So I have this ruby code I grabbed from wikipedia and I modified a

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.