Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@socialgouv/aes-gcm-rsa-oaep

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@socialgouv/aes-gcm-rsa-oaep - npm Package Compare versions

Comparing version 1.1.2 to 1.1.4

2

package.json
{
"name": "@socialgouv/aes-gcm-rsa-oaep",
"description": "Kubeseal aes-gcm-rsa-oaep encryption implementaton in JavaScript",
"version": "1.1.2",
"version": "1.1.4",
"author": {

@@ -6,0 +6,0 @@ "name": "Clement Berthou",

@@ -68,1 +68,14 @@ # AES-GCM + RSA OAEP encryption

```
## Encryption Algorithm
To encrypt content, we go through the following steps :
- Generate a 128 bits AES key
- Encrypt the payload using the AES-GCM algorithm (with the previously generated key). We use a 12 bits of 0 as IV, because the key is only used once.
- Encrypt the AES key using the RSA-OAEP algorithm (using the provided public key).
- Generate the output payload this way :
(RSA payload length as 2 bytes integer) || (RSA encrypted aes key) || (AES encrypted payload)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc