Download the PHP package rancoud/crypt without Composer
On this page you can find all versions of the php package rancoud/crypt. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download rancoud/crypt
More information about rancoud/crypt
Files in rancoud/crypt
Download rancoud/crypt
More information about rancoud/crypt
Files in rancoud/crypt
Please rate this library. Is it a good library?
Informations about the package crypt
Crypt Package
Crypt using Argon2id by default with Argon2i and bcrypt in fallback.
Installation
How to use it?
Crypt
Static Methods
Main functions
- hash(password: string): string
- needsRehash(hash: string): bool
- verify(password: string, hash: string): bool
Algos
- getCurrentAlgo(): int
- useArgon2id(): void
- useArgon2i(): void
- useBcrypt(): void
Options
- setOptionArgon2iMemoryCost(bytes: int): void
- setOptionArgon2iThreads(threads: int): void
- setOptionArgon2iTimeCost(time: int): void
- setOptionBcryptCost(rounds: int): void
- getOptionsArgon2i(): array
- getOptionsBcrypt(): array
Random string
- getRandomString([length: int = 64], [characters: ?string = null]): string
- getCharactersForRandomString(): string
- setCharactersForRandomString(characters: string): void
How to Dev
composer ci
for php-cs-fixer and phpunit and coverage
composer lint
for php-cs-fixer
composer test
for phpunit and coverage
All versions of crypt with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4.0
ext-mbstring Version *
ext-mbstring Version *
The package rancoud/crypt contains the following files
Loading the files please wait ....