Hello, I’ve a (maybe stupid) question.
I am trying to use the .Net class AesManaged (Namespace: System.Security.Cryptography, Assembly: System.Core).
See .Net reference here.
Here the relevant parts of my script:
...
using System.Security.Cryptography;
...
private string ComputeAuthenticityToken()
{
...
AesManaged aesmanaged = new AesManaged();
...
}
However, the “AesManaged” line causes the error message “The type or namespace name `AesManaged’ could not be found. Are you missing a using directive or an assembly reference?”
What am I doing wrong ?
P.S.: If I replace both AesManaged by System.Security.Cryptography.AesManaged, the error message reads “The type or namespace name AesManaged' does not exist in the namespace System.Security.Cryptography’. Are you missing an assembly reference?”
P.P.S: Adding System.Core.dll to my assets folder didn’t help.