The Encrypt library provides two-way encryption of text and binary strings using the MCrypt extension (http://php.net/mcrypt)
This is the code documentation for the SproutCMS project
Search documentation |
class EncryptThe Encrypt library provides two-way encryption of text and binary strings using the MCrypt extension (http://php.net/mcrypt)
Extending this class<?php
/**
* New class description goes here
*
* @author Your Name, 2026-09-16
**/
class NewClassName extends Encrypt {
/**
* Decrypts an encoded string back to its original value.
**/
public function decode (string $data) {
// Method code goes here
}
/**
* Returns a singleton instance of Encrypt.
**/
public function instance (array $config) {
// Method code goes here
}
/**
* Loads encryption configuration and validates the data.
**/
public function __construct (array|string $config) {
// Method code goes here
}
/**
* Encrypts a string and returns an encrypted string that can be decoded.
**/
public function encode (string $data) {
// Method code goes here
}
}
?>
|
| Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Tuesday, 15th September, 2026 at 10:26 am |
|