antiware-js - npm
npm
Search<br>Sign UpSign In
antiware-js<br>1.0.2 • Public • Published 21 hours ago<br>Readme<br>Code Beta<br>0 Dependencies<br>0 Dependents<br>3 Versions<br>Antiware (ANW)
ANW is an abbreviation for antiware<br>, It prevents object manipulation by tracking the memory address.
Installation
npm install antiware-js
Usage
const { ANW } = require("antiware-js");
// 1. Select your original data.
const request = {<br>name: "Mohamed",<br>role: "admin",<br>ip: "197.34.201.10"<br>};
// 2. Here, we reigster the object<br>const savedData = ANW.register(request);
// 3. Verifying the validity of the original object
const checkVerify = ANW.verify(savedData);<br>console.log(checkVerify);
// Output: Accepted: The security operation has been successfully verified.
// 4. Simulate the exact same data using a new object
const request2 = {<br>name: "Mohamed",<br>role: "admin",<br>ip: "197.34.201.10"<br>};
const hackAttempt = ANW.verify(request2);<br>console.log(hackAttempt);<br>// Output: Refused: Invalid or unknown memory reference!
My Manifesto
To learn more about why I built this library, my personal journey, and the vision behind antiware-js, please read the [MANIFESTO.md][MANIFESTO.md]<br>(https://github.com/Mohamed1234mmb/Antiware/blob/main/MANIFESTO.md) file.
Readme<br>Keywords<br>npm<br>memory-reference<br>javascript<br>antiware<br>security
Package Sidebar<br>Install<br>npm i antiware-js
DownloadsWeekly Downloads<br>467
Version<br>1.0.2
License<br>MIT
Last publish<br>21 hours ago
Collaborators
mohamed-medhat-mohamed
Analyze security with SocketCheck bundle size View package health Explore dependencies<br>Report malware