I've created a pure (but unsafe) C# implementation of djb's Curve25519. It's a port of +Adam Langley
's [Curve25519-Donna implementation](https://github.com/agl/curve25519-donna
It's about 3 times as fast as the Curve25519 implementation from UCIS.NaCl, which is based on the reference implementation, taking about 1.5ms per operation on my 2.6 GHz i3, but still much slower(factor 10+) than the optimized assembly version from the original NaCl library.
This code hasn't seen much testing yet, so use it with care.
I recommend using it together with [UCIS.NaCl](http://wiki.ucis.nl/NaCl
) to get related features from NaCl (just don't use their PRNG, it's totally broken). #cryptography #crypto #csharp