erlangparasu/php-rsa

PHP OPENSSL RSA encrypt and decrypt

1.0.2 2021-09-25 01:10 UTC

This package is not auto-updated.

Last update: 2024-11-17 14:20:31 UTC


README

Features:

  • create public & private key
  • encrypt & decrypt
  • encrypt long text
  • decrypt long text

Provide Methods:

_create_rsa($path_private_key, $path_public_key);

_encrypt_rsa($public_key, $text);

_decrypt_rsa($private_key, $encrypted_text);

_big_encrypt_rsa($public_key, $text);

_big_decrypt_rsa($private_key, $encrypted_text);

References:

How to encrypt data in php using Public/Private keys? https://stackoverflow.com/questions/4629537/how-to-encrypt-data-in-php-using-public-private-keys/35289156#35289156