antiware-js
v1.0.2
Published
Memory-based object protection library
Maintainers
Readme
<<<<<<< HEAD
Antiware (ANW)
ANW is an abbreviation for antiware , It prevents object manipulation by tracking the memory address.
Installation
npm install antiware-jsUsage
const { ANW } = require("antiware-js");
// 1. Select your original data.
const request = {
name: "Mohamed",
role: "admin",
ip: "197.34.201.10"
};
// 2. Here, we reigster the object
const savedData = ANW.register(request);
// 3. Verifying the validity of the original object
const checkVerify = ANW.verify(savedData);
console.log(checkVerify);
// Output: Accepted: The security operation has been successfully verified.
// 4. Simulate the exact same data using a new object
const request2 = {
name: "Mohamed",
role: "admin",
ip: "197.34.201.10"
};
const hackAttempt = ANW.verify(request2);
console.log(hackAttempt);
// Output: Refused: Invalid or unknown memory reference!