@socialgouv/aes-gcm-rsa-oaep
Advanced tools
Comparing version 1.1.2 to 1.1.4
{ | ||
"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) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29027
81