Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Encryption of password & stored as encrypted

Status
Not open for further replies.

BenjaminLim

IS-IT--Management
May 24, 2000
73
GB
Hi,

Please advice what are the synthax to encrypt password using VBA & store them in the Oracle database still encrpyted.

Please advice. Thanks.

Regards
Benjamin
 
I don't know what VBA is, but I'd store any encrypted strings in a database as a RAW.

While holding it as VARCHAR2 should be fine within the Database, as the charecters may be outside of the printable charecters range you could get unstuck if exporting from one charecter set and importing to another. For this reason I'd store it as a raw.
 
VBA meaning Visual Basic -> any idea where I could get help.

Thanks.

Regards
Benjamin
 
There's a new package in 8.1.6 that deals with encryption, its called dbms_obfuscation. it encrypts to the DES encryption standard so is very secure, I would have thought you could make standard calls to it as you would any other Oracle SP
 
Ben -- you can call Oracle Stored Procedures (which is what packages are, really) from VB.

Don't know what API you're using to get to the database (ODBC maybe?) but look for a method called ExecuteSQL or something like that. There's probably also something about parameters that you may find useful. Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
Yes, I am using ODBC but could you adviced on the synthax to use in Visual Basic.

That is could you show some examples. Thanks.

For the Oracle, could you advice how to call the Stored Procedure. And I am using Oracle ver 7, Oracle form v4.5 & Oracle Report v2.5.

Please advice. Thanks.

Regards
Benjamin
 
Ahh, the DBMS_OBFUSCATION_TOOLKIT package is part of Oracle 8.1.6 so your a bit scuppered there. I think you would have to write your own encryption package, best search the some good algorithms....

I'd also make sure that you encryprt data into a raw rather than a varchar2, if you leave it as a varchar2 and then send it to the server you *may* find that your chr(10) chr(13) get converted to just a CHR(10) as part of the standard Windows to Unix convertion, I know I've had this problem when linking Oracle to Delphi.


Mike.
 
I'm glad I've never been "scuppered". It sounds painful.
 
Scupper -- it means to sink something. You scupper a boat by opening the sea cocks and letting it sink... Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
Could some kind soul please advice which can visit to get some good synthax or algorithm for this task.

Thanks.

Regards
Benjamin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top