Decrypting data  Revoking decryption permission

New Features Adaptive Server® Enterprise 12.5.3a

Permissions for decryption

You must have these two permissions to select cleartext data from an encrypted column or to search or join on an encrypted column:

The table owner uses grant decrypt to grant explicit permission to decrypt one or more columns in a table to other users, groups and roles. Decrypt permission may be implicitly granted when a procedure or view owner grants:

In both cases, decrypt permission need not be granted on the encrypted column in the base table.

The syntax is:

grant decrypt on [ owner.] table[( column[{ ,column}])] to user
| group | role

Granting decrypt permission at the table level grants decrypt permission on all encrypted columns in the table.

Grant decrypt permission on all encrypted columns in the customer table:

grant decrypt on customer to accounts_role

The following example shows the implicit decrypt permission of user2 on the ssn column of the base table “employee”. user1 sets up the employee table and the employee_view as follows:

create table employee (ssn varchar(12)encrypt,
		 dept_id int, start_date date, salary money)

create view emp_salary as select
	 		 ssn, salary from employee

grant select, decrypt on emp_salary to user2

user2 has access to decrypted Social Security Numbers when selecting from the emp_salary view:

select * from emp_salary




Copyright © 2005. Sybase Inc. All rights reserved. Revoking decryption permission

View this release bulletin as PDF