Deon George
d3d7881e3b
All checks were successful
Create Docker Image / Test Application (x86_64) (push) Successful in 33s
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 1m26s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 3m36s
Create Docker Image / Final Docker Image Manifest (push) Successful in 11s
13 lines
252 B
PHP
13 lines
252 B
PHP
<?php
|
|
|
|
namespace App\Classes\LDAP\Attribute\Password;
|
|
|
|
final class SHA extends Base
|
|
{
|
|
public const key = 'SHA';
|
|
|
|
public function encode(string $password): string
|
|
{
|
|
return sprintf('{%s}%s',self::key,base64_encode(hash('sha1',$password,true)));
|
|
}
|
|
} |