myloveCc / NETCore.Encrypt

NETCore encrypt and decrypt tool,Include aes,des,rsa,md5,sha1,sha256,sha384,sha512
MIT License
614 stars 155 forks source link

Is NETCore.Encrypt in a Blazor Webassembly Client .Net 7.0 project working? #61

Open ragininternet opened 1 year ago

ragininternet commented 1 year ago

Hi,

var aesKey = EncryptProvider.CreateAesKey(); var jsonString = JsonSerializer.Serialize(MyComplexObj); await JsConsole.LogAsync(jsonString); var encrypted = EncryptProvider.AESEncrypt(jsonString, aesKey.Key, aesKey.IV); await JsConsole.LogAsync(encrypted);

The first LogAsync gives back the complexobject as string. The second LogAsync returns null. I used a Blazor Webassambly Cient project mit .net7.0. I thought Blazor wasm was compatible with netStandard 2.1? Any Ideas?

myloveCc commented 1 year ago

I'm not sure, i will test this problem.