decrypt using public key only with RSA

From: David Gardner (David.Gardner-Logan_at_REMOVECAPSrrd.com)
Date: 10/28/04

  • Next message: Gopal Krish: "Code access permissions step by step walkthrough?????"
    Date: Wed, 27 Oct 2004 21:11:02 -0700
    
    

    I have someone who has given me a string that was encrypted with their RSA
    private key. I tried to import their RSA public key and decrypt their strng
    but I get "Bad Key." as the response:

            'Verify the signature is authentic using the sender's public key.
            Dim rsa As New RSACryptoServiceProvider

            rsa.FromXmlString(publicKey)

            Dim SignatureDecrypted() As Byte = rsa.Decrypt(signature, False)

    Any help would be appreciated.

    David Gardner


  • Next message: Gopal Krish: "Code access permissions step by step walkthrough?????"

    Relevant Pages

    • Re: Decrypting RSA encrypted symmetric key using crypto API
      ... Forgive me being vague but it was a year ago I worked with this stuff and ... don't have my references here. ... to specify the key size when you decrypt the data. ... RSA public key using the PKCS#1 padding. ...
      (microsoft.public.vc.mfc)
    • Decrypting RSA encrypted symmetric key using crypto API
      ... I'm trying to decrypt a 3DES symmetric key wich was encrypted by a ... RSA public key using the PKCS#1 padding. ... I'm using the CryptDecrypt ...
      (microsoft.public.vc.mfc)
    • RSACryptoServiceProvider decrypt with public key
      ... The main idea behind asymmetric encryption is that there's a public ... private key, but not the other way round. ... The first way (encrypt with public, decrypt with private) is shown in ... the Base64 string to a byte array again and try to decrypt it and I ...
      (microsoft.public.dotnet.security)
    • Re: rsa, choosing public exponential
      ... > in rsa public key cryptography, ... > relatively prime)with the other exponential(in private key)? ... > explanation but i'm not sure of it. ... *before* finding the primes, then search for primes p_i such that ...
      (sci.crypt)
    • Re: Beginners Pubkey Crypto Question
      ... So that the user of the public key knows the private key actually exists. ... Otherwise someone could just say "My RSA public key uses 65537 as the ... Joe ...
      (sci.crypt)