public function testCannotUseWithUnsupportedSchemaVersions()
 {
     $fakeSchemaNumber = 57;
     $encrypted = $this->_generateEncryptedStringWithUnsupportedSchemaNumber($fakeSchemaNumber);
     $decryptor = new Decryptor();
     $this->setExpectedException('Exception');
     $decryptor->decrypt($encrypted, self::SAMPLE_PASSWORD);
 }
 /**
  * Returns an array with the IDs of compatible decryptors.
  *
  * @return int[]
  */
 public function getDecryptorIds()
 {
     return Decryptor::getIdsFromGroup($this->getDecryptorGroupId());
 }
 public function testDecryptingWithBadPasswordFails()
 {
     $decryptor = new Decryptor();
     $decrypted = $decryptor->decrypt(self::IOS_ENCRYPTED_V2_NON_BLOCK_INTERVAL, 'bad-password');
     $this->assertEquals(false, $decrypted);
 }