PHP Classes

File: src/Encryption/Traits/encryptWithoutPadding.php.txt

Recommend this page to a friend!
  Classes of John Conde  >  PHP Simple Encryption and Decryption  >  src/Encryption/Traits/encryptWithoutPadding.php.txt  >  Download  
File: src/Encryption/Traits/encryptWithoutPadding.php.txt
Role: Documentation
Content type: text/plain
Description: Documentation
Class: PHP Simple Encryption and Decryption
Encrypt and decrypt data
Author: By
Last change: Update of src/Encryption/Traits/encryptWithoutPadding.php.txt
Date: 2 years ago
Size: 291 bytes


Class file image Download


namespace Encryption\Traits;

trait EncryptWithoutPadding
    public function encrypt(string $plainText, string $key, string $iv): string
        return base64_encode(openssl_encrypt($plainText, static::CIPHER, $key, OPENSSL_RAW_DATA, $iv));
For more information send a message to info at phpclasses dot org.