Questions tagged [system.security]
59 questions
0
votes
1 answer
ArgumentOutOfRangeException when trying to create a self signed certificate using CertificateRequest with SHA1 in .NET 4.7.2
I have a requirement to generate SHA1 hashed certificates for an old legacy system which does not support SHA256. I'm well aware that MD5 and SHA1 hashing in crypto scenarios is not recommended, but this is an external requirement.
I'm using .NET…

Rafal R
- 3
- 2
0
votes
1 answer
Does setting Aes KeySize generate a new key?
According to Microsoft's documentation on System.Security.Cryptography.Aes, the key size can simply be changed by setting the KeySize property.
Does changing the key size automatically generate a new random key of the new key size? The documentation…

Old Geezer
- 14,854
- 31
- 111
- 198
0
votes
1 answer
Is the AES key good enough?
When the System.Security.Cryptography.Aes.Create(algorithmName) method is called, a new key and IV are generated. Are these good enough to use?

Old Geezer
- 14,854
- 31
- 111
- 198
0
votes
1 answer
add System.Security.Cryptography.Xml library to .net framework 4.6 project
I try to add package via nuget but this error occurs;
Could not install package 'System.Security.Cryptography.Xml 4.4.2'.
You are trying to install this package into a project that targets
'.NETFramework,Version=v4.6', but the package does not…

TyForHelpDude
- 4,828
- 10
- 48
- 96
0
votes
0 answers
Use System.Security.dll .NET 4.6 library inside .NET 4.5
I am facing a hilarious situation.
I have an app FW 4.5 that can not be upgraded to FW 4.6 because in our servers we don`t have that Fw installed.
I need to use some functionality that is only shipped in the library Fw 4.6. System.Security.dll has…

X.Otano
- 2,079
- 1
- 22
- 40
0
votes
2 answers
detect IsEncryptedString?
How can we find the given string is encrypted or plain string?
to be honest thats all the question. For instance when I'm using dataprotection using DPAPI encryption, when the given string is already a encrypted string or may be before decrypt call,…

Jay
- 1,869
- 3
- 25
- 44
0
votes
1 answer
How to solve System.Security.Cryptography.CryptographicException: Invalid provider type specified
I have developed accessing the google spreadsheet from my application .It works fine for few days but now i got an exception as
"System.Security.Cryptography.CryptographicException: Invalid provider
type specified."
I am unable to figure it out…

prasanthi
- 562
- 1
- 9
- 25
0
votes
1 answer
SignalR - failed to process connectionToken - key not valid for use in specified state
I have SignalR application hosted using Windows app. Long story, easier with selfhosting, I know.
It was working fine - but yesterday, when I run it in Debug mode in Visual Studio, after connection attempt I got an 400 error back The ConnectionId…

chester89
- 8,328
- 17
- 68
- 113
0
votes
0 answers
How should I encrypt files that may hold SSNs in C#
I have some files that users will store on their machines that may have sensitive information such as SSNs. We want to make sure that those files can only be decrypted on the machines they were encrypted on. I was going to use ProtectedData…

Matthew The Terrible
- 1,589
- 5
- 31
- 53
0
votes
0 answers
Accessing services on remote machine
I'm trying to access services on a remote computer (a virtual machine in my case). To do this I'm using
ServiceController[] services =
ServiceController.GetServices("COMPUTERNAME");
I'm getting an error message saying "Cannot open Service…

JamToast
- 59
- 7
0
votes
2 answers
Custom extensions in System.Security.Cryptography.X509Certificates
The .NET class System.Security.Cryptography.X509Certificates.X509Extension does not support some X.509 extensions I want to parse (subject alternative name, name constraints). The MSDN page for this class states "Custom extensions can be registered…

KaiEkkrin
- 1
- 1
0
votes
1 answer
Default VS2012 ASP.NET Web Site Template on Medium Trust Host
I have a default ASP.NET Web Site template project that I created with VS2012. I'm trying to publish it to 1and1.com where only Medium trust is allowed. Apparently, this template expects Full trust, but I can't figure out what I need to do.
The…

Fubak
- 107
- 1
- 11
0
votes
1 answer
NetworkInterface.GetAllNetworkInterfaces() causes System.Security Exception
I have used microsoft add in framework. From the main host I am loading an add-in and in add-in I have written :
NetworkInterface[] adapters = NetworkInterface.GetAllNetworkInterfaces().
The above line causes System.Security Exception. The…

Demon Hunter
- 233
- 1
- 3
- 15
0
votes
1 answer
Access and Identity WIF 'Key not valid' on Load balanced cloud deployment at AppHarbor
Now then all.
Having a little trouble with an MVC app using Identity and Access and Azure STS on AppHarbor giving "Key not valid in specified state" errors.
From what I gather, this is due to the default encrpytion using a machine key, which…

mrmoosehead
- 145
- 1
- 8