Comments - field and column encryption AES_ENCRYPT , AES_DECRYPT

1 year ago Daniel Black

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   |
+---------+---------+
 
1 year ago tg mai

yes, that is what I mean and I tested that. But just want to confirm if this function is permanently supported for the community version or if this can be taken away in the future. thanks

 
11 months, 1 week ago Ian Gilfillan

"Permanent" is hard to predict and there's no status to denote "cannot be taken away in future", but they are a core part of the server, had recent improvements in MariaDB 11.2, and MariaDB strives to keep backward compatibility, so I don't see any prospect of removal.

 
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.