R
R
rockwell3232022-03-30 17:35:27
C++ / C#
rockwell323, 2022-03-30 17:35:27

How to generate signature in C# similar to tweetnacl library for js?

I have string GET/user1 and secret key hex dsfsfsdf345e435jkh345b345j345vb, convert these two parameters to byte array, string uint8array = [57, 84, 43, 123, ...] and key uint8array = [23, 53, 43, 12, ...].
For node js, there is a tweetnacl library with a sign method where I pass these two byte arrays and get 1 byte array, convert it back to a hex string and get a key for signing requests.
I do not rummage in C # and how can I do all this on it?

ps I googled and googled a lot, but this is not for me, but for a colleague) I will be glad for any answer that will lead me to the result or advice from the person who has already made the signature for C # subscription.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2022-03-30
@rockwell323

In short, I googled what nacl is, and what algorithm it uses for signing - ed25519
So take any convenient library from nuget that can work with it.
There are enough of them

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question