powerlinks / blowfish-encrypter
Installs: 3 426
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 8
Forks: 0
Open Issues: 0
Requires
- php: >=5.3.0
Requires (Dev)
- fzaninotto/faker: ^1.6@dev
- phpunit/phpunit: 4.7.*@dev
This package is not auto-updated.
Last update: 2025-05-10 22:12:08 UTC
README
This class is used to encrypt and decrypt strings using the blowfish standard.
Composer
composer require powerlinks/blowfish-encrypter
{
"require": {
"powerlinks/blowfish-encrypter": "dev-master"
}
}
Usage
use PowerLinks\Encrypter\BlowfishEncrypter; $encrypter = new BlowfishEncrypter('passphrase'); $sentence = 'my sentence'; $encrypted = $encrypter->encryptToString($sentence); $sentenceAgain = $encrypter->decryptFromString($encrypted);