Secure Asset Protection Using SM2, SM3, and SM4 Cryptographic Schemes
Protected Assets
Official Documents
Documents are secured using SM4 encryption. A unique SM4 key is derived per file and used for both encryption and integrity hashing.
file_key = fetch_or_create_key(file_location) # SM4 secret key
cipher_and_digest(file_path, file_key, file_location)
User Passwords
Passwords are stored as salted hashes based ...
Posted on Fri, 29 May 2026 20:46:09 +0000 by pixelsoul
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