• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

DBMS_OBFUSCATION_TOOLKIT.DES3 [en/de]cryption

 
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Over the years I have had two projects that would enrypt/decrypt values for specific columns in a DBMS table from a Java class. Once on oracle, and once on DB2. So I know it can be done.

I have just spent about 40 minutes searching the internet for an example of a java jdbc class that uses DBMS_OBFUSCATION_TOOLKIT.DES3[en/de]crypt.


I recall call something about a prepareCall command but that is about it.




similar example of what trying to accomplish.

given a table called APP_USER that contains login id, password, social security number.

insert into APP_USER (u_id, login_id,password, ssn) values (GENERATED_PK,'mylogin', dbms_obfuscation_toolkit.DES3Encrypt (unenrypted_input_string => v_password, key_string => v_key), encrypt ssn);


select dbms_obfuscation_toolkit.DES3decrypt(input_string => app_user.password, key_string => key) from app_user where login = ?
)


Anyone know of URL references for what I am trying to do
 
peter cooke
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't know how 2 were submitted. Sorry that this was submitted twice.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic