-
Notifications
You must be signed in to change notification settings - Fork 9
Group Encryption
Status: Writing Specification
This application does not have a finalized specification. This is a working draft.
The goal of group encryption application is to share information with a selected group of individuals, while granting no intermediaries access and requiring the reading users to have access to the content's hyperlink.
As a starting point, we are working with the more advanced sharing concept found in this video.
For more details on the URL format, see the URL Specification.
These strings assign the privlyInjectableApplication
parameter with the name of the referenced injectable application.
- GroupEncryption
These parameters cannot be placed on the parameter string since that would result in their being transmitted to the remote server.
- privlyLinkKey: This key is used to decrypt the ciphertext. It may also be placed in the server parameters, but doing so is discouraged since it provides the parameter to the remote server.
These parameters can be on either the parameter string or the hash text.
- privlyDataURL: The injected web application fetches the ciphertext from this URL. When the application is injected by an extension, the content found at this URL will be messaged to this application from the extension.
These parameters are added by the extension.
- privlyOriginalURL: This parameter gives the original URL of the application. Privly-type extensions often have to change the source URL to point to local storage on the extension, but the extension still needs to provide the original parameters to the application. This parameter is only used internally in the extensions.
We list which components have access to particular pieces of information below:
- Content Server (Privly or similar party)
- Ciphertext
- Twice-encrypted content keys
- Public keys
- Host Page
- Link Key
- [Injectable Application](Injectable Applications) - Posting
- Cleartext
- Ciphertext
- Link Key
- Encrypted Content Key
- Twice Encrypted Content Key
- Public Keys
- [Injectable Application](Injectable Applications) - Reading, non-permissioned
- Link Key (if they discovered the link on the host page)
- [Injectable Application](Injectable Applications) - Reading, permissioned
- Cleartext
- Link Key (if they discovered the link on the host page)
- Ciphertext
- Twice Encrypted Content Key
- Encrypted Content Key
- Content Key
- Extension
- Everything Accessible by the [Injectable Application](Injectable Applications), and nothing more
- Encryption Library
- Private Key
- Everything Accessible by the [Injectable Application](Injectable Applications)
Note that the private key is never transferred outside the library for these operation, and the symmetric keys are one time use. If the cleartext is in javascript, it does not matter that the symmetric keys are in Javascript.
This is the high level process for encrypting content by the user generating content.
- (User Action) The user types the content into the Posting Application, selects which identities they want to share with, and submits the form.
- The application requests a new symmetric key,
ContentKey
, from the library - The application requests that the content be encrypted with the
ContentKey
- The application requests a second symmetric key,
LinkKey
, from the library - The application encrypts the
ContentKey
with theLinkKey
- The application uses the public keys of each of the users the content is shared with to encrypt the encrypted
ContentKey
. This will generate N twice-encrypted content keys, where N is the number of public keys the content is shared with. - The application receives the encrypted content from the library and posts it to the content server with all the twice-encrypted content keys
- The content server then returns a URL for the content, which is placed into the host page with the
LinkKey
- asymmetricEncryptString:key:cleartext
- symmetricEncryptString:key:cleartext
- generateNewKey
The following network requests will be made by the application:
- Get user sharing lists and CSRF token
- Post Encrypted Content and Twice Encrypted Content Key
This is the high level process for decrypting content by users who have permission to view the content.
- The application recovers the
LinkKey
from the URL for the content - The application receives the encrypted content and the twice-encrypted content keys from the content server
- The application decrypts the twice-encrypted
ContentKey
with the current user's private key which is stored in the library - The application decrypts the once-encrypted
ContentKey
with theLinkKey
- The application decrypts the content with the
ContentKey
- asymmetricDecryptString:key:ciphertext
- symmetricDecryptString:key:ciphertext
The following network requests will be made by the application:
- Get Encrypted Content and Twice Encrypted Content Key
Todo: We need to write this up in the formal style typical of cryptographic specifications and discussions.
Foundation Home
Repository List
Development Mailing List
Testing Mailing List
Announcement Mailing List
Central Wiki
Submit a Bug
IRC
Download Extension
These documents are under active development and discussion.
Credit: This Google Summer of Code content is licensed under the CC Attribution-Noncommercial-Share Alike 3.0 Unported license furnished by the Sahana Software Foundation.