
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
encrypt-react
Advanced tools
A React hook that enables automatic AES encryption and decryption for Axios requests and responses.
A lightweight React hook that encrypts outgoing Axios requests and decrypts incoming responses using AES-256-CBC. Designed to work seamlessly with a secure Express backend using the encrypt-express middleware.
📦 Built for full-stack encrypted communication.
npm install encrypt-react
Requires React 16.8+ and
axios.
import React from 'react';
import axios from 'axios';
import { useAxiosEncrypt } from 'encrypt-react';
const SECRET_KEY = 'YOUR_64_CHARACTER_HEX_KEY'; // 32-byte hex key
function App() {
useAxiosEncrypt(SECRET_KEY); // Enables encryption/decryption globally
const sendData = async () => {
const res = await axios.post('/api/test', { message: 'Hello World' });
console.log(res.data);
};
return (
<div>
<button onClick={sendData}>Send Encrypted Data</button>
</div>
);
}
export default App;
{ data: "<encrypted>" } format.useEffect.crypto-js)The backend must use the same encryption logic. Check out
encrypt-expressfor a drop-in Express middleware.
{
"data": "3e1f7f9b3e3b7a2a1e...:7a8f21cb7b95d9e1..."
}
axios installedThis package is designed to work with the encrypt-express middleware for automatic decryption on the server and encrypted responses back to the client.
FormData or binary blobs.MIT License
Made with security in mind by @Sonu. Contributions and feedback are welcome!
FAQs
A React hook that enables automatic AES encryption and decryption for Axios requests and responses.
We found that encrypt-react 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.