If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > SHA1 in DB2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-03-07, 09:49
sri_smiles sri_smiles is offline
Registered User
 
Join Date: Jul 2007
Posts: 2
SHA1 in DB2

Hi,

Iam trying to call the SHA1 function from a stored procedure. This is done to obfuscate the data in a column mentioned in the parameter.

Kindly let me know if there are any builtin function SHA1 and how to call it from stored procedure.

Thanks,
Sri_smiles
Reply With Quote
  #2 (permalink)  
Old 07-03-07, 14:48
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
You could use the ENCRYPT function for such purposes: http://publib.boulder.ibm.com/infoce...c/r0004211.htm

It is not using SHA1 as encryption algorithm, but SHA-1 is considered as a weak encryption anyways: http://en.wikipedia.org/wiki/Sha1
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #3 (permalink)  
Old 07-04-07, 00:55
sri_smiles sri_smiles is offline
Registered User
 
Join Date: Jul 2007
Posts: 2
Sha1 function in DB2

Hi,

Thanks for the response. But the requirement is not to encrypt but to obfuscate the data in the database using SHA1 and hence am trying to find a user defined function in DB2 so that i can use it in the stored procedure

Thanks,
sri_smiles
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On