Comments - field and column encryption AES_ENCRYPT , AES_DECRYPT

11 months, 1 week ago Daniel Black
This comment has the status of 'removed' and can only be seen by you.

Functions are there, aes_encrypt and aes_decrypt, in the MariaDB community version.

By columns did you mean generated columns like:

MariaDB [test]> create table t(data varbinary(30), enc varbinary(30) as (AES_ENCRYPT(data, 'bar', '0123456789abcdef', 'aes-128-ctr')) virtual);
Query OK, 0 rows affected (0.001 sec)

MariaDB [test]> insert into t (data) values ('dog'),('cat'),('chicken');
Query OK, 3 rows affected (0.002 sec)
Records: 3  Duplicates: 0  Warnings: 0

MariaDB [test]> select * from t;
+---------+---------+
| data    | enc     |
+---------+---------+
| dog     | �|C      |
| cat     | �rP      |
| chicken | �{MVĴw   |
+---------+---------+
 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.