Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How many public keys in Encryption #29

Closed
chittasec opened this issue Jul 9, 2020 · 1 comment
Closed

How many public keys in Encryption #29

chittasec opened this issue Jul 9, 2020 · 1 comment

Comments

@chittasec
Copy link

Hi,

var encrypted = crypt.encrypt([publicKey1, publicKey2, publicKey3], message);

Regarding encrypting with multiple public keys , is there any limit on how many public keys it can encrypt with ?
If there is a limit , can it be increased ?

Thanks,
Chitta

@juhoen
Copy link
Owner

juhoen commented Jul 10, 2020

Hey! There is no such limit. However, the size of the encrypted message increases per each encryption key as keys' fingerprints and encrypted AES keys must be stored into encrypted message:

{
    "v": "hybrid-crypto-js_0.1.2",        // Current package version
    "iv": "CmtyaZTyzoAp1mTNUTztic0v1...", // Initialization vector
    "keys": {                             // Encrypted AES keys by RSA fingerprints
        "85:3d:10:e1:56...": "bHaTF9...",
        "d3:48:6a:e9:13...": "t9eds3..."
    },
    "cipher": "+iwVFsC2dECBQvwcm9DND..."  // Actual encrypted message
    "signature": "sdL93kfdm12feds3C2..."  // Signature (optional)
}

@juhoen juhoen closed this as completed Jul 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants