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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:14:59+00:00 2026-05-26T13:14:59+00:00

I found an interesting thing. I’ve setup Nginx for Base Auth with htpasswd file.

  • 0

I found an interesting thing. I’ve setup Nginx for Base Auth with htpasswd file. Everything works fine, but the passwords like <correct password><some random chars> gain access as well as <correct password>.

Is it OK? It is an Nginx-only issue, or is it related to the crypt method used in both Nginx and Apache?

  • 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-26T13:14:59+00:00Added an answer on May 26, 2026 at 1:14 pm

    I shared this with our servers administrator. And he’s found the answer:
    crypt algorithm hashes only first 8 characters, so if your password is lengthier than 8 chars it does not improve it’s falsification-resistance.
    If your password is 6-symbols length, let’s say

    passwd

    Basic auth will refuse password like passwd01

    If you use htpasswd utility and want your passwords to be lengthier than 8 symbols to improve it’s cryptography strength, you better encrypt them using md5 or sha algorithm (-m and -s modifiers respectively).

    So your proposition

    is it related to the crypt method used in both Nginx and Apache

    is correct

    Proof can be found at GNU.org libc 32.3 Encrypting Passwords:

    For the DES-based algorithm, the salt should consist of two characters from the alphabet ./0-9A-Za-z, and the result of crypt will be those two characters followed by 11 more from the same alphabet, 13 in total. Only the first 8 characters in the key are significant.

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

Sidebar

Related Questions

Found interesting thing while compile the following piece of code: 1 class A {
Recently, I has been working with Drools component. I found a very interesting thing.
Not a real question because I already found out the answer, but still interesting
I found this interesting thing when I was trying out the new feature optional
Today I found one interesting thing. I didn't know that one can't declare a
Opened a LinkedHashSet source code today and found some interesting thing: public class LinkedHashSet<E>
Making a migration from 2.8.1 to 2.9.1 found interesting thing. Tried to write this
I am implementing this algorithm for a directed graph. But the interesting thing about
Everything was working fine in Rails 3.0.14, but after changing gem 'rails', '3.0.14' to
Today I found LiquiBase project and I think it is very interesting. I would

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.