Skip to content

Implement encryption and password exchange #7

Description

@nils-werner

In #5 @takluyver mentioned another tool, doing a similar thing to what we are doing. One thing wormhole has that we are missing is a sound and on-by-default crypto implementation.

There have been preparations to enable AES encrypted file transfers, it is based on both parties supplying the same password.

This issue is about collecting and juggling ideas for a user friendly encryption method. Ideally it should (checkmarks for what is in crypto branch already).

  • Use an industry standard key derivation scheme (PBKF2)
  • Use an industry standard encryption scheme (AES-CTR)
  • Use an industry standard HMAC (HMAC-SHA256)
  • Use key exchange to create a perfect forward secrecy key (SPAKE2)
  • Use an industry standard library
  • Enable encryption by default
    • The implementation currently asks for password, unless you provide one using -p (in which case it also ends up in history). Encryption can be turned off using a purposefully long switch --bypass-encryption.
    • If the the other party didn't enable encryption (legacy client or --bypass-encryption was set), an error is immedately raised as SPAKE2 fails.
    • If the two parties did not pick the same password, HMAC verification will fail after the transmission and an error message will be shown.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions