osumionline/plugin-crypt

Plugin OCrypt para Osumi Framework

3.1.0 2025-02-04 11:26 UTC

This package is auto-updated.

Last update: 2025-04-04 11:49:25 UTC


README

Osumi Framework Plugins: OCrypt

Este plugin aƱade la clase OCrypt al framework con el cifrar / descifrar textos usando OpenSSL:

$crypt = new OCrypt('secret_key');
$encrypted_text = $crypt->encrypt('text'); // Resultado: "n0HrXZ6rj8CdxYB0xqGt4FTzsh0="
$decrypted_text = $crypt->decrypt('n0HrXZ6rj8CdxYB0xqGt4FTzsh0='); // Resultado: "text"