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

Add optional encryption #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

darkdragon-001
Copy link

Cryptography

  • Use AES-GCM-256 for encryption
  • Use PBKDF2 with SHA-256 and 100000 iterations for key derivation

Behavior

  • A human-readable password will be automatically be generated when not set
  • The password will be appended to the URI as fragment #password
  • The IV (12 bytes) is prepended to the ciphertext
  • Everything is base64 encoded (33% overhead)
  • Update is disabled when encryption fails to avoid overwriting

Fixes #12

Cryptography
- Use AES-GCM-256 for encryption
- Use PBKDF2 with SHA-256 and 100000 iterations for key derivation

Behavior
- A human-readable password will be automatically be generated when not set
- The password will be appended to the URI as fragment #password
- The IV (12 bytes) is prepended to the ciphertext
- Everything is base64 encoded (33% overhead)
- Update is disabled when encryption fails to avoid overwriting

Fixes petercunha#12
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

Successfully merging this pull request may close these issues.

End-to-end encryption
1 participant