
Research
npm Malware Targets Telegram Bot Developers with Persistent SSH Backdoors
Malicious npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
react-safe-storage
Advanced tools
Local storage with encryption
npm install --save react-safe-storage
This module is pure javascript code and does not have any depencencies
It is a simple cipher based utility and does not guarantee military grade security. But it does not have any dependencies on any external library and does the job.
This component needs a secret passphrase that is used for ciphering and deciphering. Ideally, the secret passphrase should come from environment variables.
/*
secret_passphrase: secret password used for ciphering & deciphering
key: key for local storage
value: value to be stored in local storage for the specified key
*/
setItem('secret_passphrase', 'key', 'value') {}
getItem('secret_passphrase', 'key') {}
import React from 'react'
import { getItem, setItem } from 'react-safe-storage'
const App = () => {
setItem('secret_passphrase', 'email', 'hrus********e@gmail.com')
console.log(getItem('secret_passphrase', 'email'));
return <div>Hello Safe Storage</div>
}
export default App
MIT © superflows-dev
FAQs
Local storage with encryption
The npm package react-safe-storage receives a total of 10 weekly downloads. As such, react-safe-storage popularity was classified as not popular.
We found that react-safe-storage 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.
Research
Malicious npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
Security News
pip, PDM, pip-audit, and the packaging library are already adding support for Python’s new lock file format.
Product
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.