In particular, Security supports the following features:
- Encryption/decryption: Security::encryptByKey, Security::decryptByKey, Security::encryptByPassword and Security::decryptByPassword
- Key derivation using standard algorithms: Security::pbkdf2 and Security::hkdf
- Data tampering prevention: Security::hashData and Security::validateData
- Password validation: Security::generatePasswordHash and Security::validatePassword
> Note: this class requires 'OpenSSL' PHP extension for random key/string generation on Windows and
for encryption/decryption on all platforms. For the highest security level PHP version >= 5.5.0 is recommended.
For more details and usage information on Security, see the guide article on security.