insomnia-plugin-crypto
v1.1.1
Published
[](https://github.com/zaigr/insomnia-plugin-crypto/actions/workflows/build.yml)
Readme
Insomnia Plugin Crypto
This is a plugin for Insomnia that allows encrypting and decrypting request/response payloads using Node.js crypto.
Features
- Encrypt and decrypt request/response payloads
- Toggle encryption/decryption for individual requests
Usage
Response Decryption
The plugin provides a response hook that decrypts the response body if decryption is enabled for the request.
- Set the environment variables
crypto-algandcrypto-keyin your Insomnia environment. - Enable decryption for the request by using the Toggle Response Decryption action.
Request Encryption
The plugin provides a request action to toggle body encryption for individual requests.
- Right-click on the request and select Toggle Request Encryption.
- A notification will appear indicating whether decryption is enabled or disabled for the request.

Configuration
Supported Algorithms
The following algorithms are supported for encryption and decryption:
aes-256-cbcaes-192-cbcaes-128-cbc
Environment Variables
crypto-alg: The encryption algorithm to use.crypto-key: The key to use for encryption/decryption.crypto-base64: Whether to encode the encrypted data in base64. Default istrue.
Local Installation
- Clone the repository or download the source code.
- Navigate to the project directory.
- Install the dependencies:
npm install - Copy the plugin files to the Insomnia plugins directory:
npm run win-install # for Windows
