php / php/php-src

add support for OpenSSH's bcrypt variant?

Open
#22,136 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature Status: Needs Triage
Dominant language
C
Stars
40.4k
Forks
8.1k
Avg merge
2d 13h
Merged PRs (30d)
96

Description

Description

Per https://phpseclib.com/docs/bcrypt I gather OpenSSH uses a non-standard version of bcrypt with its encrypted keys. Maybe PHP's password_hash() method could be updated to support this?

I'll concede that it's relatively obscure but hash() supports rather obscure algorithms as well.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with PHP's password_hash() implementation and compare its supported bcrypt behavior with the OpenSSH variant described in the linked phpseclib documentation. Review how hash() handles algorithm support and define compatibility requirements; done means password_hash() can correctly handle the OpenSSH bcrypt variant without regressing existing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, php
Domain
cryptography, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.