Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

crypto/cha-cha-slide #5

Merged
merged 3 commits into from
Jan 24, 2024
Merged

crypto/cha-cha-slide #5

merged 3 commits into from
Jan 24, 2024

Conversation

gltchitm
Copy link
Member

No description provided.

@mud-ali
Copy link
Member

mud-ali commented Dec 20, 2023

@glacialcascade can review the crypto stuff because i don't know crypto, but the rest lgtm

cha-cha-slide/Dockerfile Outdated Show resolved Hide resolved
@glacialcascade
Copy link
Contributor

looks good to me. it became a lot easier once i actually looked up how chacha20 works


// The secret message and the user's message are encrypted with the
// same (key, nonce) tuple, which completely defeats the security of
// ChaCha20. Essentially, E(secret_msg) ⊕ E(user_msg) = secret_msg ⊕ user_msg
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

solutions arent a priority but i think it makes the sol clearer if you just say what chacha20 does, which is just xor ur message with some stream generated by the key and nonce.

i.e. "your_plaintext ⊕ stream = your_ciphertext, so you can get stream = your_plaintext ⊕ your_ciphertext, and then secret_plaintext = stream ⊕ secret_ciphertext"

@glacialcascade glacialcascade merged commit cd738a5 into main Jan 24, 2024
1 check passed
@glacialcascade glacialcascade deleted the crypto/cha-cha-slide branch June 10, 2024 23:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants