tests/Encryption/FastEncryptTest.php
/**
     * Tests decryption of encrypted data to verify the integrity of the original data.
     */
Tests decryption of encrypted data to verify the integrity of the original data.
Tests decryption of encrypted data to verify the integrity of the original data .
public function testDecrypt()
    {
        $random = Random::string(2048);
        $encrypted = FastEncrypt::encrypt($random);
        $decrypted = FastEncrypt::decrypt($encrypted);
        $this->assertEquals($random, $decrypted, 'Decrypted data does not match the original data.');
    }
public function testDecrypt ( ) { $ random = Random :: string ( 2048 ) ; $ encrypted = FastEncrypt :: encrypt ( $ random ) ; $ decrypted = FastEncrypt :: decrypt ( $ encrypted ) ; $ this -> assertEquals ( $ random , $ decrypted , 'Decrypted data does not match the original data.' ) ; }
Tests decryption of encrypted data to verify the integrity of the original data.
Tests decryption of encrypted data to verify the integrity of the original data .
// Encrypt the data // Decrypt the data // Verify we're getting the same encrypted data