Tagged articles

SM4

11 articles · Page 1 of 1
Lobster Programming
Lobster Programming
Sep 14, 2026 · Databases

Three-Field Schema for Encrypted Phone Number Queries by Last Four Digits

The article analyzes flawed approaches for querying encrypted phone numbers by last four digits — memory decryption, ciphertext fuzzy matching, partial encryption, and mapping tables — and presents a three-field design (full ciphertext, masked display, indexed last-four plaintext) that ensures compliance, security, and millisecond query performance at million-user scale.

AES-256SM4compliance
0 likes · 6 min read
Three-Field Schema for Encrypted Phone Number Queries by Last Four Digits
Xiaolin Talks Programming
Xiaolin Talks Programming
Sep 12, 2026 · Backend Development

Spring Boot SM2/SM3/SM4 Integration: Pitfalls, Key Management & Performance Tuning

This article details practical integration of Chinese national cryptographic algorithms SM2, SM3, and SM4 into Spring Boot, covering dependency setup, encryption/decryption, signing/verification, anti-replay protection, JWT implementation, TLS offloading via Nginx, key rotation strategies, and performance optimizations that raised throughput from 300 to 1300 TPS.

Chinese CryptographyKey RotationMLPS Compliance
0 likes · 20 min read
Spring Boot SM2/SM3/SM4 Integration: Pitfalls, Key Management & Performance Tuning
Xiaolin Talks Programming
Xiaolin Talks Programming
Jul 23, 2026 · Backend Development

Spring Boot Field-Level Data Masking with ShardingSphere-Encrypt: Production Guide

This article details integrating ShardingSphere-Encrypt into Spring Boot for transparent, field-level data masking, covering architecture selection, internal SQL rewrite mechanics, YAML configuration, custom algorithm SPI, common pitfalls like fuzzy queries and sharding interactions, performance benchmarks, caching strategies, and a three-phase historical data migration approach.

AESConfigurationField-Level Encryption
0 likes · 14 min read
Spring Boot Field-Level Data Masking with ShardingSphere-Encrypt: Production Guide
AntTech
AntTech
Dec 6, 2024 · Information Security

Ant Financial's MorseCrypto Wins First Place in the 2024 Financial Cipher Cup Second Stage with High‑Performance SM2/SM3/SM4 Implementations

Ant Financial's MorseCrypto team secured first place in the 2024 Financial Cipher Cup second‑stage competition by delivering highly optimized SM2, SM3, and SM4 implementations on X86 and ARM platforms that achieve up to 4.3‑times faster verification while meeting strict security and memory constraints.

Performance OptimizationSM2SM3
0 likes · 4 min read
Ant Financial's MorseCrypto Wins First Place in the 2024 Financial Cipher Cup Second Stage with High‑Performance SM2/SM3/SM4 Implementations
Open Source Tech Hub
Open Source Tech Hub
Jul 2, 2024 · Information Security

Master GmSSL: Build, Install, and Use China’s National Cryptography Suite

This guide introduces GmSSL, an OpenSSL‑compatible toolbox that implements China’s national cryptographic algorithms, explains its lightweight and cross‑platform features, and provides step‑by‑step instructions for compiling, installing, and using core commands, SM4/SM3/SM2 operations, and certificate authority workflows.

GmSSLSM2SM3
0 likes · 12 min read
Master GmSSL: Build, Install, and Use China’s National Cryptography Suite
Open Source Linux
Open Source Linux
Mar 7, 2024 · Information Security

Why China’s National Cryptographic Algorithms Matter: SM1‑SM9 Explained

The article introduces China’s national cryptographic standards—including SM1, SM2, SM3, SM4, SM7, SM9 and ZUC—explaining their origins, key features, implementation details, comparison with international algorithms, and typical use cases such as AD‑WAN, IPsec, and 4G/5G VPDN networks, highlighting their role in enhancing information security.

SM2SM3SM4
0 likes · 16 min read
Why China’s National Cryptographic Algorithms Matter: SM1‑SM9 Explained
Open Source Tech Hub
Open Source Tech Hub
Nov 5, 2023 · Information Security

Mastering PHP Data Encryption with OpenSSL and SM4: A Practical Guide

This guide explains fundamental data encryption concepts, introduces PHP's openssl_encrypt function, compares common encryption modes, shows how to generate keys and initialization vectors, and provides a complete SM4‑CBC implementation with sample code and practical security precautions.

PHPSM4cryptography
0 likes · 8 min read
Mastering PHP Data Encryption with OpenSSL and SM4: A Practical Guide