tests/Encryption/FastEncryptTest.php
/**
     * Tests encryption the same data two times to verify the integrity of the resulting data.
     */
Tests encryption the same data two times to verify the integrity of the resulting data.
Tests encryption the same data two times to verify the integrity of the resulting data .
public function testEncrypt()
    {
        $random = Random::string(2048);
        $response1 = FastEncrypt::encrypt($random);
        $response2 = FastEncrypt::encrypt($random);
        $this->assertNotEquals($response1, $response2, 'Encrypted data does not match.');
    }
public function testEncrypt ( ) { $ random = Random :: string ( 2048 ) ; $ response1 = FastEncrypt :: encrypt ( $ random ) ; $ response2 = FastEncrypt :: encrypt ( $ random ) ; $ this -> assertNotEquals ( $ response1 , $ response2 , 'Encrypted data does not match.' ) ; }
Tests encryption the same data two times to verify the integrity of the resulting data.
Tests encryption the same data two times to verify the integrity of the resulting data .
// Encrypt the same string twice // Verify we're not getting the same encrypted data