473,513 Members | 2,266 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

help needed to write a oracle function that can do this...

Pat
Encrypt function:

- One parameter is passed to it, defined as a string, and its called
strCryptThis
- set the encryption key (g_key) = "ISSUETRK"
- for each character in strCryptThis, have a counter ( =1 ) going and
do the following:
- take the ASCII value of the letter that the counter equals to in
g_key. assign this to the variable iKeyChar
ex: if counter=1 then take the ascii value of "I", if
counter=2, then take the ascii value of "S" and so on
- do the same as above except now do it for strCryptThis. assign it to
iStringChar
- take iKeyChar and XOR it with iStringChar and assign it to
iCryptChar
- take the charactorCode equivalent of iCryptChar and reassign it back
to iCryptChar
- take the ASCII equivalent of iCryptChar and reassign it back to
iCryptChar
here you should now have a number (still in a string format though).
- if iCryptChar is less than 10 then pad two zeros to the beginning of
it
ex: if iCryptChar is 6 then iCryptChar = "006"
- if iCryptChar is less than 100, then pad one zero to the beginning
of it
ex: if iCryptChar is 74 then iCryptChar = "074"
- concatenate this value to a variable strEncrypted
- increment the counter and repeat above steps for each charactor of
strCryptThis

- return strEncrypted

thanks Pat
Jul 19 '05 #1
2 3363
Hi Pat,

would you mind telling us how far you got?
What have you tried?
Have you read about the provided functions in your manuals?

Show us that you've put in some effort. Then ask about
the errors you get or the parts that still are unsolved.

Sorry, no help right now.

Guido
Jul 19 '05 #2
"Guido Konsolke" <GK@oblivion.com> wrote in message news:<10***************@news.thyssen.com>...
Hi Pat,

would you mind telling us how far you got?
What have you tried?
Have you read about the provided functions in your manuals?

Show us that you've put in some effort. Then ask about
the errors you get or the parts that still are unsolved.

Sorry, no help right now.

Guido


Would the Oracle provided package: DBMS_OBFUSCATION_TOOLKIT that
performs encryption and decryption meet the underlying need here. See
the Oracle Supplied Packages manual.

HTH -- Mark D Powell --
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
7328
by: WroteForLuck | last post by:
I am trying to write a simple SQL statement which will take a string (startdate) in the format DDMMYYYY and compare it to a date stored in an Oracle database. My SQL is as follows: <% "select...
4
3892
by: Azhar Bilgrami | last post by:
Dear Hi: Hope to see u in good health. " I want to migrate a database which is currently running Unix as Operating System and Oracle ver 6 as Database, it is also using oracle froms version 3...
2
3499
by: Ian DeRock | last post by:
I'm fairly new to XML. As I can see it, XML is a way to organize data like in a table in a RDB, or the RDB itself. I have used XML in application data, but did not design the actual XML. I...
2
3710
by: Andrew | last post by:
Hi all! Sorry guys but I am totally ignorant on oracle matters. I need some guidance in how and what is needed to connect directly to an oracle 7.3.2.3.2 database on a OpenVMS operating system...
1
4015
by: jens Jensen | last post by:
Hello , i'm calling a webservice generated with oracle webservice java tools. I'm not able to add a web reference to a .net client the usual way with visual studio 2005. I was therefore...
2
4708
by: clinttoris | last post by:
Hello, If someone could help me it would be appreciated as I am not having much luck. I'm struggling with my asp code and have some questions relating to asp and oracle database. First...
6
3282
by: jenipriya | last post by:
Hi all... its very urgent.. please........i m a beginner in oracle.... Anyone please help me wit dese codes i hv tried... and correct the errors... The table structures i hav Employee (EmpID,...
5
1413
by: oasis | last post by:
HELP NEEDED : I have developed a testing system thats generates question paper. i want to display this paper to 20 different users in a Server/Client architecture. is there any built-in function...
2
224
by: Pat | last post by:
Encrypt function: - One parameter is passed to it, defined as a string, and its called strCryptThis - set the encryption key (g_key) = "ISSUETRK" - for each character in strCryptThis, have a...
0
7265
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7545
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7539
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5692
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4751
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3240
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1605
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
461
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.