Joining encrypted columsn using postgres pgcrypto
The following sample will create two tables which includes two sets of usernames and the AES encrypted form of their their fave animal.
Each table will use a different encryption key:
- table1:
collaborator1
will use encryption key of1234
- table2:
collaborator2
will use encryption key of6789