
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
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 outside of the process, without the key.
var SecureStore = require('secure-store-redis');
var store = new SecureStore({
namespace: 'myApp:store',
secret: 'quacks like a duck',
errorOnNotFound: true, //optional; will cb error if data can't be found
redis: {
host: 'localhost', // optional
port: 6379, // optional
// optionally use the 'url' property to specify entire redis connect string
// url: 'redis://localhost:6379',
max_clients: 30, // optional
database: 0, // optional
options: {
auth_pass: 'password'
} //options for createClient of node-redis, optional
}
});
store.save('quote', 'i see dead people', function (err, reply) {
//...
store.get('quote', function (err, reply) {
// err: null
// reply: 'i see dead people'
});
store.get('quote', function (err, reply) {
// err: record not found
// reply: undefined
});
});
store.delete('quote', function (err, reply) {
// err: null
// reply: 1
});
var otherStore = new SecureStore({
prefix: 'myApp:store',
secret: 'this is the wrong secret',
redis: { // standard redis config object
host: "127.0.0.1",
port: 6379
}
});
otherStore.get('quote', function (err, reply) {
// err: record not found
// reply: undefined
});
FAQs
A simple wrapper to encrypt and decrypt data stored in Redis
The npm package secure-store-redis receives a total of 180 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.