Recommend this page to a friend! |
![]() ![]() |
Info | ![]() |
![]() ![]() |
Reputation | Support forum (1) | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
![]() ![]() ![]() ![]() ![]() | Total: 545 | All time: 5,507 This week: 263![]() |
Version | License | PHP version | Categories | |||
file-integrity-check 1.6 | GNU General Publi... | 5.3 | PHP 5, Files and Folders, Security |
Description | Author | |
This class can check if directory files change using MD5 hashes. |
integrity-md5-class =================== Comprueba los hashes MD5 de un árbol de directorios para ver si han sido modificados. Uso === Podemos generar un archivo de hashes MD5 usando el metodo *getMD5Hashes()* este metodo generara un archivo con la fecha actual si no se especifica el nombre del archivo. ```php include 'libraries/integrity.md5.class.php'; $integrity = new integrity('path/to/folder/'); $integrity->getMD5Hashes(); // archivo por defecto, por ejemplo: 20140316151603.md5 // or $integrity->getMD5Hashes('custom_name.md5'); // archivo personalizado. ``` Para realizar la comprobacion debemos usar el metodo *checkMD5Hashes()* al cual le pasaremos el archivo con los hashes MD5 con los que deseemos realizar la comparacion. ```php include 'libraries/integrity.md5.class.php'; $integrity = new integrity('path/to/folder/'); $files = $integrity->checkMD5Hashes(); var_dump($files); ``` Nos devolvera un array con la lista de los archivos que an sufrido cambios. |
![]() |
File | Role | Description |
---|---|---|
![]() ![]() |
Example | Aux |
![]() ![]() |
Example | Aux |
![]() |
Class | Main Class |
![]() ![]() |
Lic. | Licence |
![]() ![]() |
Doc. | ReadMe |
![]() | file-integrity-check-2014-05-02.zip 14KB |
![]() | file-integrity-check-2014-05-02.tar.gz 14KB |
![]() | Install with Composer |
Version Control | Reuses | Unique User Downloads | Download Rankings | ||||||||||||||||
100% | 1 |
|
|
User Ratings | User Comments (1) | ||||||||||||||||||||||||||||||||||
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Other classes that need this package |
Class | Why it is needed | Dependency |
---|---|---|
Simple Framework | This class allow to create auto integrity checkers | Optional |
Related pages |
GitHub integrity-md5-class GitHub page |
otherCode MD5 Integrity Checker Documentation and Examples |