SproutCMS

This is the code documentation for the SproutCMS project

class Encrypt

The 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
    }
    
}
?>