wolverineo250kr / yii2-pevnev-security-helper
Security helper based on Yii2 framework. Returns an encoded string by key, aveliable to be used as a GET parameter.
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- php: >=7.0.0
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2024-05-01 00:09:38 UTC
README
Description
Based on Yii2 security function encryptByKey, this helper returns an encoded string aveliable to be used as a GET parameter.Install
composer require "wolverineo250kr/yii2-pevnev-security-helper":"v1.0.4"Usage
To encode string call in your Yii2 app following php command with your encryption key:\wolverineo250kr\helpers\security\SecurityHelper::encodeStringByKey('Your string', 'yourKey');
To decode string call in your Yii2 app following php command with your encryption key:
\wolverineo250kr\helpers\security\SecurityHelper::decodeStringByKey('5arqQR_W4GYzB5uIwNDUfDg4YTcyZjFiMzg3OTQwN2YzOTRjMTEzODlmODVjZjIxOGQ0ODUzZDNhNmEyODg3MDA3OGZiMzZkZDhkMGVhNjD9yDn2R8FySgjbfIzuISO3miPmWLSBFz7f0wWMbrNYRw', 'yourKey');