maple3142 / cf-warp

MIT License
449 stars 64 forks source link

feat: generate wireguard key using tweetnacl #3

Closed oott123 closed 4 years ago

oott123 commented 4 years ago

After this change, user are not required to install wireguard cli to use this tool.

maple3142 commented 4 years ago

I have published these changes on npm as cf-warp@1.2.0

maple3142 commented 4 years ago

Besides, I don't understand what going on in clampSecret, and where did that code came from?

Edited: I figured it out. It seems to came from https://github.com/WireGuard/WireGuard/blob/897548e927fc90d13a19e1b1f29a549e7f885621/src/crypto/include/zinc/curve25519.h#L22