
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
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.
NOTE version 2.x
is a rewrite in TypeScript, using async functions, and is
backwards incompatible with 1.x
const SecureStore = require('secure-store-redis').default;
const store = new SecureStore('myApp:store', '823HD8DG26JA0LK1239Hgb651TWfs0j1', {
host: 'localhost', // optional
port: 6379, // optional
// optionally use the 'url' property to specify entire redis connect string
// url: 'redis://localhost:6379',
});
await store.init();
await store.save('quote', 'i see dead people');
let res = await store.get('quote');
// res: 'i see dead people'
let res = await store.get('quote');
// res: null
const num = await store.delete('quote');
// num: 1
await store.save('quote', 'i see dead people again');
const otherStore = new SecureStore('myApp:store', 'this is the wrong secret', {
host: "127.0.0.1",
port: 6379
});
await otherStore.init();
let res = await otherStore.get('quote');
// res: undefined
FAQs
A simple wrapper to encrypt and decrypt data stored in Redis
The npm package secure-store-redis receives a total of 34 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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.