multiparty-shared-secret-encryption
Reactive icon

Multiparty Shared Secret Encryption

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 24 Aug (yesterday)
 by 
EONE TECHNOLOGIES PRIVATE LIMITED
0.0
 (0 ratings)
multiparty-shared-secret-encryption

Multiparty Shared Secret Encryption

Documentation
1.0.0

Function Reference

1. generateAndSplit(nShares, kThreshold)

Generates a cryptographically secure secret and splits it into shares.

Parameters:

nShares → Total number of shares to generate.

kThreshold → Minimum shares needed to reconstruct the secret.

Output:

shares → Array of Base64‑encoded shares.

secret → Generated secret (Base64).

2. combineShares(sharesArray)

Reconstructs the original secret from the provided shares.

Parameters:

sharesArray → Array of Base64‑encoded shares (at least kThreshold).

Output:

secret → Reconstructed secret (Base64).

3. encryptMessage(secret, plainText)

Encrypts a plaintext string using AES‑256‑GCM.

Parameters:

secret → Base64‑encoded shared secret.

plainText → Text to encrypt.

Output:

ciphertext → Encrypted message (Base64).

iv → Initialization Vector (Base64).

4. decryptMessage(secret, ciphertext, iv)

Decrypts a ciphertext string back to plaintext using AES‑256‑GCM.

Parameters:

secret → Base64‑encoded shared secret.

ciphertext → Base64‑encoded encrypted message.

iv → Base64‑encoded IV.

Output:

plainText → Decrypted message.