
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
DirectoryFingerPrinting.Library
Advanced tools
DirectoryFingerPrintingLibrary (short: DFP) is a powerful .NET Standard 2.0 library designed for creating and collecting file and directory checksums and metadatas, for forensic, version or change management tasks. Purpose: This library offers types and methods for retrieving all or specific (configurable) differences between the files in two directories. Save the current state (meta-data of whole files) of a directory as a tiny DFP file, later you can compare the content of the directory against the DFP file and so recognize if there were any changes, and if so what has been changed in that directory.
This is the english documentation. Following translations are available:
DirectoryFingerPrinting.Library (short: DFP lib) is a powerful .NET/C# library designed for creating and collecting file and directory checksums and metadatas, for forensic, version or change management tasks.
Purpose: This library offers types and methods for retrieving all or specific (configurable) differences between the files in two directories. Save the current state (meta-data of whole files) of a directory as a tiny DFP file, later you can compare the content of the directory against the DFP file and so recognize if there were any changes, and if so what has been changed in that directory.
The DFP library offers a comprehensive set of features, including:
public void Demo()
{
// Create settings:
IOptions options = new Options
{
UseHashsum = true,
UseSize = true,
UseVersion = true,
UseLastModification = true,
HashAlgo = EHashAlgo.SHA512,
// More options...
};
// Create metadata factory:
IMetaDataFactory metaDataFactory = new MetaDataFactory(options);
// Get the metadata for a single file:
IMetaData metaData1 = metaDataFactory.CreateMetaData(@"C:\dir\filePath.ext");
IMetaData metaData2 = metaDataFactory.CreateMetaData(new FileInfo(@"C:\dir\filePath.ext"));
// Get the metadata for files in a directory:
IEnumerable<IMetaData> metaDatasB = metaDataFactory.CreateMetaDatas(@"C:\dirPath");
IEnumerable<IMetaData> metaDatasA = metaDataFactory.CreateMetaDatas(new DirectoryInfo(@"C:\dirPath"));
// Create differencies-calculator factory:
IDirDiffCalculator diffCalculator = new DirDiffCalculator(options);
// Get file differencies between files in A and B:
IEnumerable<IFileDiff> differences1 = diffCalculator.GetFileDifferencies(metaDatasA, metaDatasB);
// Get file differencies between two DFP (files):
IDirectoryFingerprint dfpA = null;
IDirectoryFingerprint dfpB = null;
// Load/convert dfp A...
// Load/convert dfp B...
// Get file differencies between dfpA and dfpB:
IEnumerable<IFileDiff> differences2 = diffCalculator.GetFileDifferencies(dfpA, dfpB);
// Show or save differences2...
}
FAQs
DirectoryFingerPrintingLibrary (short: DFP) is a powerful .NET Standard 2.0 library designed for creating and collecting file and directory checksums and metadatas, for forensic, version or change management tasks. Purpose: This library offers types and methods for retrieving all or specific (configurable) differences between the files in two directories. Save the current state (meta-data of whole files) of a directory as a tiny DFP file, later you can compare the content of the directory against the DFP file and so recognize if there were any changes, and if so what has been changed in that directory.
We found that directoryfingerprinting.library demonstrated a healthy version release cadence and project activity because the last version was released less than 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
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.