Skip to content

Commit

Permalink
Using a more widely available cipher & mode for test_initialize_encry…
Browse files Browse the repository at this point in the history
…pt_decrypt() (newer PHP versions)
  • Loading branch information
gxgpet committed Jan 13, 2024
1 parent eba320e commit 73d3d64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/codeigniter/libraries/Encryption_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public function test_initialize_encrypt_decrypt()
$this->assertEquals($message, $this->encryption->decrypt($this->encryption->encrypt($message)));

// Try DES in ECB mode, just for the sake of changing stuff
$this->encryption->initialize(array('cipher' => 'des', 'mode' => 'ecb', 'key' => substr($key, 0, 8)));
$this->encryption->initialize(array('cipher' => 'tripledes', 'mode' => 'ofb', 'key' => substr($key, 0, 8)));
$this->assertEquals($message, $this->encryption->decrypt($this->encryption->encrypt($message)));
}

Expand Down

0 comments on commit 73d3d64

Please sign in to comment.