Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

dguard

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dguard

dguard nodejs addon

latest
Source
npmnpm
Version
1.0.7
Version published
Weekly downloads
15
15.38%
Maintainers
1
Weekly downloads
 
Created
Source

DGuard

Installation

1. Install Clang, OpenSSL

  • CentOS, Fedora, RHEL
sudo yum install openssl-devel
  • Ubuntu
sudo apt-get install libssl-dev
  • macOS
xcode-select --install 

If you have a problem although your mac already installed xcode-select, you can try this command (not responsible for any damage):

sudo rm -rf /Library/Developer/CommandLineTools
xcode-select --install

2. Install the package

npm i dguard

Usage

dguard.init({ local: false });

async function myFunction() {
      const encrypted = await dguard.encrypt("CRYPTO", "ENC", "테스트");
      console.log("ENC:", encrypted); // "ENC: KrYf33BmD8uoqlWEQ8AG9A=="
      const decrypted = await dguard.decrypt("CRYPTO", "ENC", encrypted);
      console.log("DEC:", decrypted); // "DEC: 테스트"
      const hashed = await dguard.hash("CRYPTO", "PWD", "1111111111");
      console.log("PWD:", hashed); // "PWD: R4RJJu0F8cTeWYH3o5GqNriPQdjcX0UpmoZGrqBJq2s="
}

dguard.close();

FAQs

Package last updated on 17 Apr 2025

Did you know?

Socket

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.

Install

Related posts