
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
integrity-checker
Advanced tools
Easily verify the integrity of files within a project.
This library can be used in:
Use npm to install it:
cd into the root directory of your project, where the package.json file is located and do:
> npm install integrity-checker --save
import it into your project:
const integrity = require("integrity-checker");
function integrityCheck() {
if (integrity.checkDir("./", "Key", "IV")) {
// Integrity check passed - Files not modified
} else {
// Integrity check failed - Files possibly modified
}
}
Use npm to install it:
cd into the root directory of your project, where the package.json file is located and do:
> npm install integrity-checker --save
import it into your project:
import integrity from "integrity-checker";
function integrityCheck() {
if (integrity.checkDir("./", "Key", "IV")) {
// Integrity check passed - Files not modified
} else {
// Integrity check failed - Files possibly modified
}
}
For quick access to the hash values of a project/folder/file, you can use these commands:
> integrity check <file> <key> <iv>
Check the integrity of a file.
> integrity save <file> [key] [iv]
Save the file's hash for a integrity check.
> integrity hash <file>
Get the hash value of a file.
> integrity genkeys
Generate keys for hash encryption.
You can easily implement the module into your project, for checking the integrity of files when someone uses the application. We recommend that you include a integrity check on all files in at least 2+ files so that if someone changes one the other files will detect that.
FAQs
Easily verify the integrity of files within a project.
We found that integrity-checker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.