English 中文(简体)
。 NET 私人 主要加密
原标题:.NET Public Private Key Based Encryption

我需要用我的公用/私用钥匙对一些信息进行加密,并使其他当事人(用户)能够使用我加密的电文。 我不想让他们知道我是如何对我的信息进行加密的。 如何做到这一点。 利用公私营钥匙配对网?

I Trial RSACryptoservice NET提供商,但问题在于

i) We can only encrypt using Public key and decrypt using Private key ii) Private key xml string always contains public key xml string.

因此,如果要使用RSA,就不必向需要加密本人信息的用户分发私人钥匙和公用钥匙。

您可以帮助如何超越我不必寄发重要信息以及加密钥匙的情况。

请帮助

增 编

问题回答

你是利用RSACryptoserviceProvider这样做的,但我不理解你的问题。

如果您使用RSACryptoserviceProvider,你就会与完整的钥匙(公共和私营)进行服务器方加密,并且只与钥匙的公共部分进行客户方加密。 因此,你只能公开发表钥匙。 这就是你们所希望的,这为你们的工作创造了条件。

另一方面: 您在提问中描述这种说法的方式,是没有工作的。 你们只能依靠公共钥匙进行加密! 你们的问题和(或)你的法典存在一些错误。

期望你签署数据,而不是加以加密。





相关问题
Manually implementing high performance algorithms in .NET

As a learning experience I recently tried implementing Quicksort with 3 way partitioning in C#. Apart from needing to add an extra range check on the left/right variables before the recursive call, ...

Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How do I compare two decimals to 10 decimal places?

I m using decimal type (.net), and I want to see if two numbers are equal. But I only want to be accurate to 10 decimal places. For example take these three numbers. I want them all to be equal. 0....

Exception practices when creating a SynchronizationContext?

I m creating an STA version of the SynchronizationContext for use in Windows Workflow 4.0. I m wondering what to do about exceptions when Post-ing callbacks. The SynchronizationContext can be used ...

Show running instance in single instance application

I am building an application with C#. I managed to turn this into a single instance application by checking if the same process is already running. Process[] pname = Process.GetProcessesByName("...

How to combine DataTrigger and EventTrigger?

NOTE I have asked the related question (with an accepted answer): How to combine DataTrigger and Trigger? I think I need to combine an EventTrigger and a DataTrigger to achieve what I m after: when ...

热门标签