- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: posix script: extracting binary data from orac...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2005 07:50 AM
тАО03-10-2005 07:50 AM
posix script: extracting binary data from oracle
I have found, on rare occasions, that an encrypted password that should unencrypt to say, "FoobaR" actually gets unencrypted to "Foobar".
I suspect the binary data is somehow occasionally getting translated -- a hex 00 to a hex 20, for instance.
Anyone done something similar to this or have any ideas? I know it would probably be easier to write a c program or something, but we don't have ProC installed on this box.
Thanks
- Tags:
- sqlplus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2005 08:22 AM
тАО03-10-2005 08:22 AM
Re: posix script: extracting binary data from oracle
You really need to tell us out the Oracle output and a simple printf("%s",s) won't do it because as soon as the first NUL is encountered the sting is terminated. It's just not possible to help much without know some details --- and you can't reveal many detials. I assume your Oracle is using some combination of decode, translate, hextoraw, rawtohex.
At this point, your task is to isolate the problem to Oracle or to your encrypt/decrypt program.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2005 09:31 AM
тАО03-10-2005 09:31 AM
Re: posix script: extracting binary data from oracle
We have a cobol program that calls proprietary 'c' libraries (part of our ERP system) to retrieve the encrypted information from Oracle. I have stepped thru the code in debug to watch the decryption program (it uses some variant of RC4 algorithm) and actually saw the translation of each byte.
It's pretty clear that what the script is passing to the decryption program is different than what the cobol program is passing, even though it's the same table element. The database field is defined as a simple alpha field.
I have attached a text file that shows
the hex values of the data when the encrypt/de-encrypt program is called both ways (with a script, and with a cobol program).
I hope I didn't confuse the issue.
Scott
- Tags:
- COBOL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2005 10:30 AM
тАО03-10-2005 10:30 AM
Re: posix script: extracting binary data from oracle
Are you using the shell to pass these values into the encrypt/decrypt program? You would probably be better served to capture the output in a file and cat the file to provide input.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2005 04:34 AM
тАО03-11-2005 04:34 AM
Re: posix script: extracting binary data from oracle
I have spooled the select of the encrypted value to a file, instead of assigning it to a variable. When I cat the file and pipe it thru "hd", it gives exactly the same results as the "print -n ${my_var}" example in the attachment sent earlier.
I believe I have isolated the issue to the manner in which I am retrieving the data. I need to capture the raw, binary data in that field. I've looked at hextoraw and rawtohex, but it seems like what I need is simply a "retrieve raw value" function.
I'll keep at it. Thanks for your input.
Scott