include/utils/encryption_utils.php
Functions
blowfishDecode(
STRING $key, STRING $encoded
)
:
string
Uses blowfish to decode data assumes data has been base64 encoded with the iv stored as part of the data
Parameters
Returns
Name | Type | Description |
---|---|---|
$key | STRING | key - key to base decoding off of |
$encoded | STRING | encoded base64 encoded blowfish encrypted data |
Type | Description |
---|---|
string |
blowfishEncode(
STRING $key, STRING $data
)
:
string
Uses blowfish to encrypt data and base 64 encodes it. It stores the iv as part of the data
Parameters
Returns
Name | Type | Description |
---|---|---|
$key | STRING | key - key to base encoding off of |
$data | STRING | data - string to be encrypted and encoded |
Type | Description |
---|---|
string |
blowfishGetKey(
string $type
)
:
string
retrives the system's private key; will build one if not found, but anything encrypted before is gone...
Parameters
Returns
Name | Type | Description |
---|---|---|
$type | string | type |
Type | Description |
---|---|
string | key |