
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
secure-store-redis
Advanced tools
A simple wrapper to encrypt and decrypt data stored in redis. The main point is to ensure that any data you store in redis cannot be accessed by anyone else, without the key.
npm install secure-store-redis
import SecureStore from "secure-store-redis";
const store = new SecureStore({
uid: "myApp:store",
secret: "823HD8DG26JA0LK1239Hgb651TWfs0j1",
redis: {
url: 'redis://localhost:6379',
}
));
await store.init();
await store.save("quote", "hello world");
let res = await store.get("quote");
// res: 'hello world'
const num = await store.delete("quote");
// num: 1
let res = await store.get("quote");
// res: null
await store.save("quote", "hello world again");
const otherStore = new SecureStore({
uid: "myApp:store",
secret: "this is the wrong secret 32 char",
redis: {
url: "redis://localhost:6379",
},
});
await otherStore.init();
let res = await otherStore.get("quote");
// res: null
await otherStore.disconnect();
await store.disconnect();
FAQs
A simple wrapper to encrypt and decrypt data stored in Redis
The npm package secure-store-redis receives a total of 66 weekly downloads. As such, secure-store-redis popularity was classified as not popular.
We found that secure-store-redis demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.