Implementing RSA Private Key Encryption in Java and Public Key Decryption in C#
RSA asymmetric encryption typically involves public key encryption and private key decryption. However, some scenarios require the reverse approach: private key encryption in Java and public key decryption in C#.
Certificate formats differ between platforms: .pfx certificates contain both public and private keys, while .cer certificates only in ...
Posted on Tue, 09 Jun 2026 16:34:54 +0000 by Asday
Implementing SM4 Encryption and Decryption with BouncyCastle on OpenEuler x86_64
Settting Up the Development Environment
Install Java and Maven on OpenEuler:
sudo yum install java-17-openjdk
sudo yum install maven
Creating the Project Srtucture
Create a Maven project by adding the following dependencies to pom.xml:
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/ ...
Posted on Mon, 18 May 2026 05:31:07 +0000 by nainil