Skip to content

Add optional encryption#16

Open
darkdragon-001 wants to merge 1 commit intopetercunha:masterfrom
darkdragon-001:crypt
Open

Add optional encryption#16
darkdragon-001 wants to merge 1 commit intopetercunha:masterfrom
darkdragon-001:crypt

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