radiate-framework / framework

A WordPress plugin and theme framework
https://radiate-framework.github.io/
MIT License
4 stars 0 forks source link

Encrypter #98

Closed BenRutlandWeb closed 3 years ago

BenRutlandWeb commented 3 years ago

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 in wp-config.php:https://api.wordpress.org/secret-key/1.1/salt/ or create a custom key. a CLI command would be nice

wp radiate key:generate