You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "BeCareOfZm (via GitHub)" <gi...@apache.org> on 2023/05/26 03:22:34 UTC

[GitHub] [shardingsphere] BeCareOfZm commented on issue #25877: Hexadecimal data cannot be encrypted?

BeCareOfZm commented on issue #25877:
URL: https://github.com/apache/shardingsphere/issues/25877#issuecomment-1563762065

   > Hi @BeCareOfZm , could you edit the issue with [template](https://raw.githubusercontent.com/apache/shardingsphere/master/.github/ISSUE_TEMPLATE/bug-report.md)? More information is needed, e.g. version, configuration, etc
   
   **tar package**:  apache-shardingsphere-5.3.2-shardingsphere-proxy-bin.tar
   **version**: 5.3.2
   **rule**: ```
   CREATE ENCRYPT RULE t_user (
     COLUMNS(
       (
         NAME = id_card_no,
         CIPHER = id_card_no,
         ENCRYPT_ALGORITHM(
           TYPE(
             NAME = 'AES',
             PROPERTIES('aes-key-value' = '123456abc')
           )
         )
       ),
       (
         NAME = mobile,
         CIPHER = mobile,
         ENCRYPT_ALGORITHM(
           TYPE(
             NAME = 'AES',
             PROPERTIES('aes-key-value' = '123456abc')
           )
         )
       )
     ),
     QUERY_WITH_CIPHER_COLUMN = true
   );
   ```
   **create table sql**: 
   `CREATE TABLE t_user (
       id INT(8) primary key, 
       mobile VARCHAR(50), 
       id_card_no VARCHAR(50)
   );`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org