src/Support/Archive.php
/**
	 * Checks whether the archive's contents can be decrypted.
	 *
	 * @return bool
	 */
Checks whether the archive's contents can be decrypted.
@return bool
Checks whether the archive ' s contents can be decrypted . @return bool
public function isDecryptable() {
		if (!is_null($this->localEncryption)) {
			$result = FastEncrypt::decrypt($this->localEncryption);
			if (strpos($result, ';') !== false) {
				$split = explode(';', $result);
				if (array_shift($split) == Framework::path()) {
					return true;
				}
			}
		}
		foreach ($this->files as $file) {
			if (empty($file['dir']) && $file['name'] == 'HZENCRYPTED') {
				$data = trim($file['data']);
				$result = FastEncrypt::decrypt($data);
				if (strpos($result, ';') !== false) {
					$split = explode(';', $result);
					if (array_shift($split) == Framework::path()) {
						return true;
					}
				}
			}
		}
		return false;
	}
public function isDecryptable ( ) { if ( ! is_null ( $ this -> localEncryption ) ) { $ result = FastEncrypt :: decrypt ( $ this -> localEncryption ) ; if ( strpos ( $ result , ';' ) !== false ) { $ split = explode ( ';' , $ result ) ; if ( array_shift ( $ split ) == Framework :: path ( ) ) { return true ; } } } foreach ( $ this -> files as $ file ) { if ( empty ( $ file [ 'dir' ] ) && $ file [ 'name' ] == 'HZENCRYPTED' ) { $ data = trim ( $ file [ 'data' ] ) ; $ result = FastEncrypt :: decrypt ( $ data ) ; if ( strpos ( $ result , ';' ) !== false ) { $ split = explode ( ';' , $ result ) ; if ( array_shift ( $ split ) == Framework :: path ( ) ) { return true ; } } } } return false ; }
Checks whether the archive's contents can be decrypted.
Checks whether the archive ' s contents can be decrypted .