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

[RFC] Maskwork General Ciphertext Format (v1.0.0.0) [Draft] #226

Closed
neruthes opened this issue Sep 25, 2019 · 1 comment
Closed

[RFC] Maskwork General Ciphertext Format (v1.0.0.0) [Draft] #226

neruthes opened this issue Sep 25, 2019 · 1 comment

Comments

@neruthes
Copy link
Contributor

Background

Criteria

  • Never rely on CRLF.
  • Never rely on %20.
  • Never rely on \s.
  • As human-readable as possible.
  • Forward compatibility.
  • Have funny memes.

Basic Structure

<MaskworkCipher>
<Ciphertext>
...
</Ciphertext>
<ExtraInfo>
...
</ExtraInfo>
</MaskworkCipher>

Cipher

Encrypt the payload and put the base-64 encoded result into <Ciphertext> node.

ExtraInfo

Subnodes may include:

<EphemeralPublicKeyECDHHybrid v="JQKSLxSwquW+9YBAoS53ns6fuPwOjFyspngZ63ZxnU3Gs93D5cUtWocgkMlhleEx0yKZ1e45U2zp57SUgCJd1w==" encoding="base-64" />
<SemihandshakePublicKeyECDHE v="l7zzHmb3D3JKAm559SFafW/fIk0KrHbZWdNxddV/m5iOSQxOZbQU0j2JuRdVQlRfLM8FCVnfkWRu5lj5S3YZBQ==" encoding="base-64" />

To be continued...

@neruthes
Copy link
Contributor Author

Dismissed as #225 will be replaced by #502. Will design a counterpart upon #502.

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

No branches or pull requests

2 participants