Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 26 additions & 12 deletions File-Integrity-Scanner/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<groupId>org.pwss</groupId>
<artifactId>File-Integrity-Scanner</artifactId>
<version>1.8.3</version>
<version>1.8.4</version>
<packaging>jar</packaging>
<description>A File Integrity Scanner</description>
<licenses>
Expand Down Expand Up @@ -52,8 +52,8 @@
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<spring-boot.version>4.0.1</spring-boot.version>
<postgresql.JDBC-Driver.version>42.7.8</postgresql.JDBC-Driver.version>
<spring-boot.version>4.0.2</spring-boot.version>
<postgresql.JDBC-Driver.version>42.7.9</postgresql.JDBC-Driver.version>
</properties>


Expand All @@ -75,6 +75,12 @@
<artifactId>spring-boot-starter-test</artifactId>
<version>${spring-boot.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
</exclusion>
</exclusions>
</dependency>


Expand All @@ -87,7 +93,7 @@
</dependency>


<!-- https://mvnrepository.com/artifact/org.postgresql/postgresql -->
<!-- https://mvnrepository.com/artifact/org.postgresql/postgresql/42.7.9 -->
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
Expand All @@ -104,19 +110,19 @@
</dependency>


<!-- https://mvnrepository.com/artifact/io.swagger.core.v3/swagger-annotations -->
<!-- https://mvnrepository.com/artifact/io.swagger.core.v3/swagger-annotations/2.2.42 -->
<dependency>
<groupId>io.swagger.core.v3</groupId>
<artifactId>swagger-annotations</artifactId>
<version>2.2.41</version>
<version>2.2.42</version>
</dependency>


<!-- https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-starter-webmvc-ui -->
<!-- https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-starter-webmvc-ui/3.0.1 -->
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>3.0.0</version>
<version>3.0.1</version>
</dependency>


Expand All @@ -133,7 +139,7 @@
"jakarta.validation.NoProviderFoundException: Unable to create a Configuration..."
-->

<!-- https://mvnrepository.com/artifact/org.hibernate.validator/hibernate-validator -->
<!-- https://mvnrepository.com/artifact/org.hibernate.validator/hibernate-validator/9.1.0.Final -->
<dependency>
<groupId>org.hibernate.validator</groupId>
<artifactId>hibernate-validator</artifactId>
Expand All @@ -144,22 +150,30 @@
<dependency>
<groupId>lib.pwss</groupId>
<artifactId>algorithm-hash-extraction</artifactId>
<version>1.2.6</version>
<version>1.2.7</version>
</dependency>


<!-- https://github.com/pwssOrg/PWSS-DirectoryNav/packages/2588313 -->
<dependency>
<groupId>lib.pwss</groupId>
<artifactId>directory_nav</artifactId>
<version>1.5.4</version>
<version>1.5.5</version>
</dependency>

<!-- https://github.com/pwssOrg/PWSS-FileQuarantine/packages/2687320 -->
<dependency>
<groupId>lib.pwss</groupId>
<artifactId>file-quarantine</artifactId>
<version>1.0.5</version>
<version>1.0.6</version>
</dependency>

<!-- https://mvnrepository.com/artifact/org.assertj/assertj-core/3.27.7 -->
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>3.27.7</version>
<scope>test</scope>
</dependency>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ public User() {
private String username;

@OneToOne(cascade = CascadeType.ALL)
@JoinColumn(name = "auth_id")
@JoinColumn(name = "auth_id",nullable = false)
private Auth auth;

@OneToOne(cascade = CascadeType.ALL)
@JoinColumn(name = "user_time")
@JoinColumn(name = "user_time",nullable = false)
private Time time;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,8 @@ public void scanSingleDirectory(StartScanByIdRequest request)
throw new ScanAlreadyRunningException();
}

stopRequested = false; // Reset stop request at the start of a new scan.

if (validateRequest(request)) {

isFileListToBigForLiveFeed = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

/**
* Service interface for managing license operations.
*
* This interface defines methods for validating license keys, which will be
* implemented by a
* service class.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ public final boolean validateLicenseKey(String licenseKey) {

// Validate against known license data values
if (licenseList.get(0).getLicenseData()
.equals("331cd7b3ce491feda6e855dcbf5de4dec5d5211e7776c8e7da4a91026ddab7b7")
.equals("b289ab93856e4e3411dbbc79f151c727aba2621be5a61c27686d5410eb5ca8ac")
&& licenseList.get(1).getLicenseData()
.equals("71b16c484b415c32e6139f95d7276ea351228fbef0af5f7dcbd8bff0484b59b5")) {
.equals("31a084dcff2e114d601027eb1f3137faaaa1d07e452960759a73064f72d2292a")) {

String[] repositoryData = licenseList.stream().map(License::getLicenseData).toArray(String[]::new);

Expand Down
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
# File-Integrity Scanner

## Overview

The **File-Integrity Scanner** is a powerful tool designed to ensure the integrity of files by using cryptographic
hash functions. This application provides peace of mind that files have not been tampered with, which is crucial
for security and data verification purposes.



## What is a File Integrity Scanner?

A file integrity scanner is a software utility that computes cryptographic hashes of files and monitors them for
changes. This process helps in detecting unauthorized modifications or corruption of critical files on a local
machine.


## Key Features

- **Hashing Algorithms:** Supports three different hashing algorithms:
Expand All @@ -24,12 +26,13 @@ machine.
- **Local Operation:** The scanner runs exclusively on the user's local machine. No remote services are required
or desired, ensuring full control over data integrity for the end-user.

- **No Spyware or Tracking:** The default version contains no spyware or tracking software.

![File Integrity Scanner Image](https://github.com/pwssOrg/File-Integrity-Scanner/blob/master/.github/assets/images/640x486.jpg?raw=true)

---

🛡️ **Zero spyware. Zero tracking. Full respect for your privacy.**

## Basic Setup Instructions

### Requirements
Expand All @@ -40,7 +43,7 @@ or desired, ensuring full control over data integrity for the end-user.

### Spring Version

**Spring 4.0.1**
**Spring 4.0.2**

### Steps

Expand Down