rsacryptoserviceprovider Questions

3

Solved

I've been developing an ASP.NET site on an older machine running XP home. I recently got a new Win 7 PC and moved all my project files across. When I try and run the project, I get this error messa...

7

Solved

I need to export private key from Windows store. What should I do if the key is marked as non-exportable? I know that it is possible, program jailbreak can export this key. To export key I use Org...
Storebought asked 12/10, 2010 at 12:54

1

I am creating RSA key pair using AsymmetricKeyAlgorithmProvider (Windows.Security.Cryptography.Core) and exporting the keys as shown below: AsymmetricKeyAlgorithmProvider rsaGenKeys = AsymmetricK...
Pontificate asked 16/4, 2015 at 16:22

1

I'm trying to create a PublicKey instance using an Oid and RSA public Key but I'm getting a CryptographyException with "ASN1 bad tag value met". I'm following the answer found here to eventually cr...
Tarpan asked 19/11, 2019 at 18:46

2

Solved

I'm using the following code in an attempt to programatically allow the NetworkService account to have access to a key: var RSA = new RSACryptoServiceProvider( new CspParameters() { KeyContaine...
Velites asked 29/6, 2010 at 16:36

8

While decrypting text using RSACryptoServiceProvider.Decrypt, I am getting the error: Error occurred while decoding OAEP padding. Here's my code: CspParameters cspParam = new CspParameters();...

3

Solved

What is the best way to initate a new RSACryptoServiceProvider object from an X509Certificate2 I pulled out of a key store? The certificate is associated with both public (for encryption) and priva...
Slantwise asked 3/5, 2011 at 16:49

3

Solved

I'm currently trying to create an RSACryptoServiceProvider object solely from a decoded PEM file. After several days of searching, I did manage to wrangle a working solution but it's not one that w...
Concelebrate asked 23/1, 2017 at 13:59

1

I am creating an tool to manage RSA Key Pairs on Windows since there is no built-in functionality for this and we make extensive use of the RSA encryption features in .NET. The tool provides vari...
Menedez asked 2/1, 2015 at 14:28

2

Solved

I know this is a similar question to this one but before I head down the Bouncey Castle route, does anyone know if its possible to load an RSA KeyPair from a .pem file, e.g.: -----BEGIN RSA PRIVA...
Effeminacy asked 22/7, 2009 at 0:44

1

Solved

I uploaded a Certificate to Azure KeyVault and obtained "all" access to it using an application registered into the Active Directory. That all works fine. Now I need to load the obtained key ...
Flocculent asked 20/10, 2016 at 10:21

3

I have encrypted a text using RSACryptoServiceProvider. I exported the public and private key. Obviously I just want to expose the public key inside the decoder application, so I have written a cod...
Proscription asked 20/7, 2011 at 14:45

1

I have the below test which isolates a problem I'm running into using System.Security.Cryptograph.RSACryptoServiceProvider. The problem is that r.Decrypt is throwing exception "Key does not exist"....
Keciakeck asked 25/10, 2013 at 18:59

2

Solved

I'm trying to initialize RSACryptoServiceProvider with my own public and private keys. As far as I could research, the way to do this is to call the constructor with RSACryptoServiceProvider RSA...
Tripedal asked 30/11, 2012 at 22:59

1

Solved

I use RSACryptoServiceProvider in my C# code, and it's working good I could Export RSA XML private and public keys, but for some reason I need to convert this key to *.pem with format (PKCS8 Unencr...
Ap asked 23/11, 2014 at 6:4

2

I wrote a code block for Encrypt/Decrypt Streams. The code is working in my local machine. But when I publish my code on web The Decryption functions throws "Bad Data" exception Here is the my Enc...
Gorgias asked 11/3, 2013 at 13:17

4

I copied the source code from one application to another, both running on the same machine. I am also using the same string for containerName below in both applications. What is preventing my new ...
Orison asked 21/1, 2011 at 20:45

3

Solved

I am trying to decrypt data that has been encrypted previously in RSA (don't worry, I'm supposed to be able to, I have the keys. Nothing illegal :). However, I get a "Bad Key." error at the decryp...
Exenterate asked 7/9, 2009 at 23:51

1

Solved

I'm building an application for secure messaging between multiple clients. In order to achieve that, I encrypt the message with AES, then I encrypt the AES key with the recipients public RSA key, t...
Screw asked 14/7, 2013 at 14:1

1

Solved

I am writing an application that used PKI to secure email, files etc. Using the System.Cryptography namespace, I am generating a new key pair using RSACryptoServiceProvider. The method is: public...
Jamarjamb asked 17/7, 2013 at 7:4

3

Solved

Has anyone using .net actually worked out how to successfully sign a signature to use with CloudFront private content? After a couple of days of attempts all I can get is Access Denied. I have been...
Auteur asked 17/2, 2010 at 20:36

2

I'm having a problem using a machine level RSA key container when storing only the public key of a public/private key pair. The following code creates a public/private pair and extracts the publi...
Ararat asked 16/2, 2010 at 16:50

5

Solved

I'm currently trying to implement a class to handle secure communications between instances of my app using RSACrytoServiceProveider class. First question : is it a good idea implement a single cl...
Alleluia asked 21/12, 2008 at 12:30

1

I'm trying to encrypt a symetric key with a RSA (Exchange Key in CSP) in C# using this piece of code (the RSA key CSP50C8C7CD is not exportable, and it's in HSM): CspParameters csp_dnet = new CspP...
Peseta asked 19/12, 2012 at 18:40

4

Having problem with encryption. I gave full permissions to all users to RSA folders. I did C:\>aspnet_regiis -pe "appSettings" -location "web.config" -prov "RsaProtectedCo nfigurationProvider" ...

© 2022 - 2024 — McMap. All rights reserved.