Puoi usare questa https://packagist.org/packages/defuse/php-encryption