I am looking for the best solution to store sensitive data in a database. I know this is a common problem, and I did my homework (at least this is what I think), but I wanted to ask here before making a decision.
Assumptions:
I was thinking about 2 concepts:
Encrypt data using the passlib.totp library. To make this data more secure, I will store the key in a separate file. Then from what I see, I can use this library to decrypt data in plain text with my key.
Another concept was to encrypt and decrypt the data during the request request using postgres:
insert into demo(pw) values ( encrypt( 'data', 'key', 'aes') );
and
decrypt(pw, 'key', 'aes'), 'utf-8')
Here the key will be stored in a separate file.
So my questions are:
2) postgres: insert into demo (pw) values (encrypt ('data', 'key', 'aes')); (pw, 'key', 'aes'), 'utf-8') .
, , pg_stat_activity, .. PostgreSQL , .
pg_stat_activity
. , , . , , , - . - , in-db crypto, IMO, .
. , , ( ) , .
, , . , , " ", .
, -, . , , , , . , , , , . , , ", , ". , , , .
(.. , ), -, , . , . , , , , , , , . (: , , a) , , b) . , , , . , .)
tl; dr , . , , - , , , , , -, "" . , : .
Vault, :
. , Vault , , API .., , , .. , API. , Vault." ", , - . , , , , .
. , Vault , , API ..
, , , .. , API. , Vault.
" ", , - . , , , , .
. REST API. - . .
Source: https://habr.com/ru/post/1679961/More articles:import jquery into angular4 - angularAn example of using the DOM Attr class - javascriptSwift - the View Height table is updated only after scrolling or switching to expand / collapse - iosSpotlight search indexing not working in ios11? - ios11AWS Cognito Facebook and Google Plus User Credentials - iosWhy do I see performance degradation when using row order? - optimizationВычислить жизненный цикл proc 95% CI для медианного времени выживания с использованием пакета выживания R - rwhat's the difference between extend, overlay and override component in aem - aemWhy is map {} .compact faster than each_with_object ([])? - ruby | fooobar.comSort a list containing paths in Python. - pythonAll Articles