encrypt or decrypt a text with a really high security encode pattern
action parameter must be `encrypt` or `decrypt` ( use BPT\constants\codecAction constant class for easy use )
string parameter is your hash(received when use encrypt) or the text you want to encrypt
for decrypt , you must have key and iv parameter. you can found them in result of encrypt
| Name | Type | Description | Required |
|---|---|---|---|
| string | yes |
Output : string | bool | array
Static or normal : Static
tools::codec('decrypt', '9LqUf9DSuRRwfo03RnA5Kw==', '39aaadf402f9b921b1d44e33ee3b022716a518e97d6a7b55de8231de501b4f34', 'a2e5904a4110169e');tools::codec(codecAction::ENCRYPT, 'hello world');