Is your feature request related to a problem? Please describe.
WordPress doesn't have a build in encrypt/decrypt function. This seems like a useful thing to have for application development.
Describe alternatives you've considered
custom implementation but this can lead to inconsistencies.
Additional context
Laravel uses openssl_encrypt/decrypt. A secure key will also be needed. Could use one of the WordPress keys defined in wp-config.php:https://api.wordpress.org/secret-key/1.1/salt/ or create a custom key. a CLI command would be nice
Is your feature request related to a problem? Please describe. WordPress doesn't have a build in encrypt/decrypt function. This seems like a useful thing to have for application development.
Describe the solution you'd like A facade like Laravel to encrypt/decrypt data: https://laravel.com/docs/8.x/encryption
Describe alternatives you've considered custom implementation but this can lead to inconsistencies.
Additional context Laravel uses
openssl_encrypt/decrypt
. A secure key will also be needed. Could use one of the WordPress keys defined inwp-config.php
:https://api.wordpress.org/secret-key/1.1/salt/ or create a custom key. a CLI command would be nice