Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
sec-obfuscate
Advanced tools
Readme
sec-obfuscate is a fork of the original sec-obfuscate-nodejs last updated in 2014. There have been deprecations since then, so this library addresses those.
sec-obfuscate is a library which obfuscates numbers (IDs etc...) using ciphers from OpenSSL.
var SecObfuscate = require("sec-obfuscate"),
secObfuscate = new SecObfuscate(key, iv, [cipher], [blockLength]);
cipher
is a name of a encrption algorithm in OpenSSL notation. Default value is AES-256-CTR.
blockLength
is a length of the output block. It have to be a multiple of 8. Default value is 32.
Currently only stream cipher (RC4) or AES with stream modes of operation are available:
Code below presents a simple example of how the library can be used. More examples are available in test directory.
var SecObfuscate = require("sec-obfuscate"),
key = '0123456789abcdef0123456789abcdef',
iv = '0123456789abcdef'
secObfuscate = new SecObfuscate(key, iv),
encryptedValue = secObfuscate.encrypt(42),
decryptedValue = secObfuscate.decrypt(encryptedValue),
FAQs
Obfuscate IDs in a secure way!
The npm package sec-obfuscate receives a total of 0 weekly downloads. As such, sec-obfuscate popularity was classified as not popular.
We found that sec-obfuscate 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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.