Exemple #1
0
 public function testChangePepper()
 {
     $hashOrig = \IcyApril\CryptoLib::hash("test string");
     $this->assertNotEmpty($hashOrig);
     \IcyApril\CryptoLib::changePepper("TEST PEPPER");
     $hashNew = \IcyApril\CryptoLib::hash("test string");
     $this->assertNotEmpty($hashNew);
     $this->assertNotEquals($hashOrig, $hashNew);
 }