April 15, 2011 at 8:44 am
In our database user table columns are encrypted.
HOw to find what kind of encryption is applied on database/table?
How to decrypt and query the data? appriciate your help. we are using sql server 2005 version
table name USER
USERID
USERFNAME
USERLNAME
USERADDRESS
USERPHNUM
USERZIPCODE
USEREMAILID
STATUSID
April 15, 2011 at 8:49 am
How did you find that columns where Encrypted ?
Thanks
Parthi
April 15, 2011 at 8:59 am
select * from user
I could see encrypted data
April 15, 2011 at 11:34 am
hbk_sql (4/15/2011)
select * from userI could see encrypted data
Im..In that which column where encrypted (all the columns or only few).
How was the encrypted data any sample you can have over here.
Thanks
Parthi
April 15, 2011 at 12:43 pm
only few columns are encrypted.
for example user first name
4mul4unnK6D0q4FvMPEbnatLQH5gsaSrc9J4+mV63Xc=
user last name
rJFtI92/RJg3/ymvWG9qYL8+dLAAoGFsRA0cX1ArRFA=
April 15, 2011 at 1:09 pm
this is just a guess, but AES encryption would match that format, since it can be stored in a varchar instead of varbinary field...but how does that help at all? you need the key to decrypt it anyway.
Lowell
April 15, 2011 at 1:27 pm
All encryption is binary. It appears that particular encrypted data is encoded using BASE64 encoding which can be stored in a varchar() column.
I'm surprised you don;t have resources in your organization (who wrote the application?) that can give you the necessary details as to how to decrypt the data. It makes me suspicious that you would be asking for that information here on this forum.
In any case, short of brute force cracking with lots of time and CPU horsepower you will never decrypt that data if you don't have the keys, seed or the specific algorithm.
The probability of survival is inversely proportional to the angle of arrival.
April 15, 2011 at 2:37 pm
I have joined recently here as a DBA and new to encryption. The previous only DBA left the organization I got keys to decrypt. Just want to know how to decrypt the data?
April 18, 2011 at 8:51 am
I just want to know if few columns are encrypted, script to query the data
table name USER
USERID
USERFNAME
USERLNAME
USERADDRESS
USERPHNUM
USERZIPCODE
USEREMAILID
STATUSID
April 18, 2011 at 10:52 pm
You should ask the developer what algorithm did he used in encrypting the data. It will require the Key, Type of Encryption, etc or some might also require the Salt key.
Viewing 10 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic. Login to reply