powerlinks / blowfish-encrypter
dev-master
2015-10-29 09:40 UTC
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: 2026-03-29 02:59:10 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);