pgcrypto

postgresql des encrypt

…衆ロ難τιáo~ 提交于 2020-01-22 03:03:04
问题 I have oracle database to move on to new postgresql server. Some tables are having field sesitive and those are all encryted through DBMS_OBFUSCATION_TOOLKIT.DESENCRYPT/DESDECRYPT. The problem is here. The size of postgresql's encrypted data size(bytea type) should be the same with oracle's. I tried to get it done with aes(encrypt/decrypt) which takes almost three times larger than raw data.(oracle takes 16byte with des algorithm, postgresql takes 33byte with aes and the raw data is of 13byte

Login details security using salt n hash and a login role in postgresql

与世无争的帅哥 提交于 2019-12-24 10:56:05
问题 I am coding up the security for a website in express.js and postgresql db. Now I have been reading about salting and hashing and I have the code set up with pdkdf2 using the crypto module, but my issue is how I will structure the account table in the db. What If i would create a login role which will have an MD5 encrypted format for the password, which password will be the derived key from the salt n hash "procedure". Would that be an overkill of protection? There will be a table which will

Encrypt the datas in postgresql

余生颓废 提交于 2019-12-24 01:57:18
问题 I am beginner in PostgreSQL. Right now, I am using PostgreSQL 9.3 Version installed in Windows Server 2008 OS. I am planing to encrypt the data in user table. I have go through most of the web sites related that, but I did not get clear idea and also encrypt function is not working. I getting error while execute this query. select encrypt('123456789012345','1234','aes');. Error Message : ERROR: function encrypt(unknown, unknown, unknown) does not exist . Can anyone help me to solve this issue

PostgreSQL: Encrypt Column With pgcrypto

有些话、适合烂在心里 提交于 2019-12-22 04:35:11
问题 I need to encrypt some columns in a PostgreSQL 9.6 database. The data being encrypted is inherently sensitive; however, the data are not passwords or other authentication credentials. This data will need to be decrypted for statistical analysis and consumption by users. After reading several questions and answers: Storing encrypted data in Postgres https://dba.stackexchange.com/questions/24370/how-to-use-aes-encryption-in-postgresql https://dba.stackexchange.com/questions/59942/secure

PostgreSQL: Encrypt Column With pgcrypto

有些话、适合烂在心里 提交于 2019-12-04 04:16:29
I need to encrypt some columns in a PostgreSQL 9.6 database. The data being encrypted is inherently sensitive; however, the data are not passwords or other authentication credentials. This data will need to be decrypted for statistical analysis and consumption by users. After reading several questions and answers: Storing encrypted data in Postgres https://dba.stackexchange.com/questions/24370/how-to-use-aes-encryption-in-postgresql https://dba.stackexchange.com/questions/59942/secure-postgresql-database-encryption ... and considering these comments: ... it seems the biggest problem with using

postgresql des encrypt

一笑奈何 提交于 2019-12-02 08:27:37
I have oracle database to move on to new postgresql server. Some tables are having field sesitive and those are all encryted through DBMS_OBFUSCATION_TOOLKIT.DESENCRYPT/DESDECRYPT. The problem is here. The size of postgresql's encrypted data size(bytea type) should be the same with oracle's. I tried to get it done with aes(encrypt/decrypt) which takes almost three times larger than raw data.(oracle takes 16byte with des algorithm, postgresql takes 33byte with aes and the raw data is of 13byte.) I tried the postgresql crypt also, but the manual doesn't metion the way of decrypting it back

Can't decrypt using pgcrypto from AES-256-CBC but AES-128-CBC is OK

我与影子孤独终老i 提交于 2019-11-26 10:03:06
问题 I have problem decrypting data in pgcrypto that was previously encrypted in PHP app. I tried 3 types of encryption: 1) mcrypt - RIJNDAEL 128 CBC 2) mcrypt - RIJNDAEL 256 CBC 3) openssl_encrypt - aes-256-cbc everything is encrypted decrypted fine in PHP, but in pgcrypto I can decrypt using same key and iv only 1) mcrypt - RIJNDAEL 128 CBC Here is example code for PHP part: <?php function d ($data, $key, $mode) { $data = @base64_decode($data); $pad = $mode == MCRYPT_RIJNDAEL_256 ? 32 : 16; $iv