定制 driehle/php-crypt-md5 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

driehle/php-crypt-md5

最新稳定版本:v3.5.1

Composer 安装命令:

composer require driehle/php-crypt-md5

包简介

A pure PHP implementation of an MD5-hashsum-based implementation of the crypt routine, which can be used to generate hashs for Apache's passwd files

README 文档

README

A pure PHP implementation of an MD5-hashsum-based implementation of the crypt routine, which can be used to generate hashs for Apache's passwd files.

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

Description

unix_md5_crypt() provides a crypt()-compatible interface to the rather new MD5-based crypt() function found in modern operating systems. It's based on the implementation found on FreeBSD 2.2.[56]-RELEASE and contains the following license in it:

"THE BEER-WARE LICENSE" (Revision 42):
<phk@login.dknet.dk> wrote this file.  As long as you retain this notice you
can do whatever you want with this stuff. If we meet some day, and you think
this stuff is worth it, you can buy me a beer in return.   Poul-Henning Kamp

apache_md5_crypt() provides a function compatible with Apache's .htpasswd files. This was contributed by Bryan Hart (bryan@eai.com).

Installation

The latest version of this package can be installed via Composer:

composer require driehle/php-crypt-md5

All available versions can be found under https://packagist.org/packages/driehle/php-crypt-md5.

Usage

$cryptedpassword = Md5Crypt::unix   ($password [, $salt [, $magicstring ]);
$apachepassword  = Md5Crypt::apache ($password [, $salt]);

Authors

Other implementations this one is based on:

统计信息

  • 总下载量: 2.54k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 2
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2013-06-26