MariaDB

By siteadministrator, 23 6月, 2020

テーブルの暗号化

openssl rand -hex 32 >> keyfile 
vi keyfile

先頭に任意の数字を追加する。

e8682f7b803eb20d6bb963434aa62bd94bbe760e8371ac2599012581556ecd59

                              ↓

1;e8682f7b803eb20d6bb963434aa62bd94bbe760e8371ac2599012581556ecd59

openssl rand -hex 128 > keyfile.key
openssl enc -aes-256-cbc -md sha1 -pass file:keyfile.key -in keyfile -out keyfile.enc

設定ファイルを編集する。