[优化建议] PolarDB 增加国密算法(SM3/SM4)支持

Open
#264 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java, sql

Research direction

Start by reviewing the PolarDB kernel's existing MD5() and AES_ENCRYPT() implementations and the documented built-in encryption-function behavior. No repository files or tests are named in the issue, so locate the relevant function entry points first. Done means SM3 and SM4 are supported with usage consistent with the existing encryption functions.

Written by the indexing model from the issue text.

Description

问题描述

目前国产加密算法如SM3、SM4在密码评测、数据安全等项目中使用广泛。我们在项目中使用 PolarDB 时发现,当前 PolarDB 暂不支持这些国密算法,导致在涉及国密合规要求的业务场景中无法直接使用 PolarDB的函数。

查阅 PolarDB 官方文档及公开资料,目前只支持AES、MD5、SHA1、SHA2等加密函数。
Image

建议

在 PolarDB 内核层面支持 SM3、SM4等国产加密算法,提供与现有加密函数一致的使用方式(如类似 MD5()AES_ENCRYPT() 的内置函数)。

Dominant language
Java
Stars
1.7k
Forks
337
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from polardb/polardbx-sql

All issues in polardb/polardbx-sql

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.