dbTalk Databases Forums  

Masking a column

comp.databases.sybase comp.databases.sybase


Discuss Masking a column in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Bret_Halford
 
Posts: n/a

Default Re: Masking a column - 10-28-2008 , 09:45 AM






On Oct 27, 9:35*pm, raghus... (AT) gmail (DOT) com wrote:
Quote:
Hi,
We are using Sybase 12.5.4 how to mask a column of a particular table,
plz provide any link or manual for the same.
Please define "mask"?

Are you looking to prevent users from seeing certain data (you can
revoke select permissions at the column level, or create a view that
substitutes
some value for a column based on the user_id() of the person doing the
select.)
You can also upgrade to 15.0 and use the new encryption features. The
encryption
feature includes a default value provided to users without decrypt
permission.

Or are you trying to use a bit-mapped column (similar to
sysusages.segmap) and
mask certain bits? If so see the & and ^ operators

<int> & 1 returns 1 if bit 0 is on
<int> & 2 returns 2 if bit 1 is on, etc.
<int> & 3 returns 3 returns 1 if bit 0 is on and bit 1 is off, 2 if
bit 0 is off and bit 1 is on, and 3 if both bits are on...
[etc.]

-bret


Reply With Quote
  #12  
Old   
Bret_Halford
 
Posts: n/a

Default Re: Masking a column - 10-28-2008 , 09:45 AM






On Oct 27, 9:35*pm, raghus... (AT) gmail (DOT) com wrote:
Quote:
Hi,
We are using Sybase 12.5.4 how to mask a column of a particular table,
plz provide any link or manual for the same.
Please define "mask"?

Are you looking to prevent users from seeing certain data (you can
revoke select permissions at the column level, or create a view that
substitutes
some value for a column based on the user_id() of the person doing the
select.)
You can also upgrade to 15.0 and use the new encryption features. The
encryption
feature includes a default value provided to users without decrypt
permission.

Or are you trying to use a bit-mapped column (similar to
sysusages.segmap) and
mask certain bits? If so see the & and ^ operators

<int> & 1 returns 1 if bit 0 is on
<int> & 2 returns 2 if bit 1 is on, etc.
<int> & 3 returns 3 returns 1 if bit 0 is on and bit 1 is off, 2 if
bit 0 is off and bit 1 is on, and 3 if both bits are on...
[etc.]

-bret


Reply With Quote
  #13  
Old   
Bret_Halford
 
Posts: n/a

Default Re: Masking a column - 10-28-2008 , 09:45 AM



On Oct 27, 9:35*pm, raghus... (AT) gmail (DOT) com wrote:
Quote:
Hi,
We are using Sybase 12.5.4 how to mask a column of a particular table,
plz provide any link or manual for the same.
Please define "mask"?

Are you looking to prevent users from seeing certain data (you can
revoke select permissions at the column level, or create a view that
substitutes
some value for a column based on the user_id() of the person doing the
select.)
You can also upgrade to 15.0 and use the new encryption features. The
encryption
feature includes a default value provided to users without decrypt
permission.

Or are you trying to use a bit-mapped column (similar to
sysusages.segmap) and
mask certain bits? If so see the & and ^ operators

<int> & 1 returns 1 if bit 0 is on
<int> & 2 returns 2 if bit 1 is on, etc.
<int> & 3 returns 3 returns 1 if bit 0 is on and bit 1 is off, 2 if
bit 0 is off and bit 1 is on, and 3 if both bits are on...
[etc.]

-bret


Reply With Quote
  #14  
Old   
Bret_Halford
 
Posts: n/a

Default Re: Masking a column - 10-28-2008 , 09:45 AM



On Oct 27, 9:35*pm, raghus... (AT) gmail (DOT) com wrote:
Quote:
Hi,
We are using Sybase 12.5.4 how to mask a column of a particular table,
plz provide any link or manual for the same.
Please define "mask"?

Are you looking to prevent users from seeing certain data (you can
revoke select permissions at the column level, or create a view that
substitutes
some value for a column based on the user_id() of the person doing the
select.)
You can also upgrade to 15.0 and use the new encryption features. The
encryption
feature includes a default value provided to users without decrypt
permission.

Or are you trying to use a bit-mapped column (similar to
sysusages.segmap) and
mask certain bits? If so see the & and ^ operators

<int> & 1 returns 1 if bit 0 is on
<int> & 2 returns 2 if bit 1 is on, etc.
<int> & 3 returns 3 returns 1 if bit 0 is on and bit 1 is off, 2 if
bit 0 is off and bit 1 is on, and 3 if both bits are on...
[etc.]

-bret


Reply With Quote
  #15  
Old   
Bret_Halford
 
Posts: n/a

Default Re: Masking a column - 10-28-2008 , 09:45 AM



On Oct 27, 9:35*pm, raghus... (AT) gmail (DOT) com wrote:
Quote:
Hi,
We are using Sybase 12.5.4 how to mask a column of a particular table,
plz provide any link or manual for the same.
Please define "mask"?

Are you looking to prevent users from seeing certain data (you can
revoke select permissions at the column level, or create a view that
substitutes
some value for a column based on the user_id() of the person doing the
select.)
You can also upgrade to 15.0 and use the new encryption features. The
encryption
feature includes a default value provided to users without decrypt
permission.

Or are you trying to use a bit-mapped column (similar to
sysusages.segmap) and
mask certain bits? If so see the & and ^ operators

<int> & 1 returns 1 if bit 0 is on
<int> & 2 returns 2 if bit 1 is on, etc.
<int> & 3 returns 3 returns 1 if bit 0 is on and bit 1 is off, 2 if
bit 0 is off and bit 1 is on, and 3 if both bits are on...
[etc.]

-bret


Reply With Quote
  #16  
Old   
Bret_Halford
 
Posts: n/a

Default Re: Masking a column - 10-28-2008 , 09:45 AM



On Oct 27, 9:35*pm, raghus... (AT) gmail (DOT) com wrote:
Quote:
Hi,
We are using Sybase 12.5.4 how to mask a column of a particular table,
plz provide any link or manual for the same.
Please define "mask"?

Are you looking to prevent users from seeing certain data (you can
revoke select permissions at the column level, or create a view that
substitutes
some value for a column based on the user_id() of the person doing the
select.)
You can also upgrade to 15.0 and use the new encryption features. The
encryption
feature includes a default value provided to users without decrypt
permission.

Or are you trying to use a bit-mapped column (similar to
sysusages.segmap) and
mask certain bits? If so see the & and ^ operators

<int> & 1 returns 1 if bit 0 is on
<int> & 2 returns 2 if bit 1 is on, etc.
<int> & 3 returns 3 returns 1 if bit 0 is on and bit 1 is off, 2 if
bit 0 is off and bit 1 is on, and 3 if both bits are on...
[etc.]

-bret


Reply With Quote
  #17  
Old   
Bret_Halford
 
Posts: n/a

Default Re: Masking a column - 10-28-2008 , 09:45 AM



On Oct 27, 9:35*pm, raghus... (AT) gmail (DOT) com wrote:
Quote:
Hi,
We are using Sybase 12.5.4 how to mask a column of a particular table,
plz provide any link or manual for the same.
Please define "mask"?

Are you looking to prevent users from seeing certain data (you can
revoke select permissions at the column level, or create a view that
substitutes
some value for a column based on the user_id() of the person doing the
select.)
You can also upgrade to 15.0 and use the new encryption features. The
encryption
feature includes a default value provided to users without decrypt
permission.

Or are you trying to use a bit-mapped column (similar to
sysusages.segmap) and
mask certain bits? If so see the & and ^ operators

<int> & 1 returns 1 if bit 0 is on
<int> & 2 returns 2 if bit 1 is on, etc.
<int> & 3 returns 3 returns 1 if bit 0 is on and bit 1 is off, 2 if
bit 0 is off and bit 1 is on, and 3 if both bits are on...
[etc.]

-bret


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.