smartinmedia / Net-Core-JS-Encryption-Decryption

A library to encrypt / decrypt with AES (Rijndael) between C# Net Core and JavaScript and securely hash with Scrypt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Very interesting

acymiranda opened this issue · comments

Hi! The project seems very interesting and I'd like to use that. :-)

However, I didn't quite understand how to use it, the code sample wasn't clear enough imo. And you also said that the salt was generated every time you process, but I couldn't find that in the sample as well (the salt was hard coded).

For a simple sample, just to get a string in JS, like "Hello World" and send it to C#, how would it be (using the randomly salt you said)? And, other thing... if you randomly generate a new salt in JS, how C# will know this new salt?

Thanks!