Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

Parameter Passing

Parameter1 : Password { 9999 }


Parameter 2 : Output { for Return at end process}
Paramenter3 : Length {4}
Parameter4 : Scabble Code {CALLCENTER}
Define output = 15 character
Using parameter4 to finding password encrypted
position
{Prepared Position that password will be put in 15
character}
Encryption Process
Put the encrypted password in the position from
process2
Example Output for scabble
code CALLCENTER
13 3 11 6 8 4
12 10 7 14 9 5
15 2 1
Example Output for password 9999 and 8989
9999 =
- - - - - -
- - - - -
8989 =
- - - - - -
- - - : - -
Send first 8 character of encrypted password to
CCC System by End of day process
..r.-..:...
** ... .\..-\..-.. - . space
Example Output for password 9999 and 8989
9999 = - - - - - - - - - - -
8989 = : - - - - - - - - - - -
Example password that was send to CCC System
9999 = - - - - - -
8989 = - - - - - -
.-... .. Encrypt password ...
Password character 1 -:.... output character 13
Password character 2 -:.... output character 3
Password character 3 -:.... output character 11
.
Password character 15 -:.... output character 1
Process : 1
Process : 2
Process : 2
..r .-.-. Encryption
-.. ccc s, .-.-:......:. s+s+ ++++
Parameter Passed
WKI = 9999
WKO
WKLEN = 4
WKSEC = CALLCENTER
Array Declaration
WKS = Array[10]
WKI = Array[15]
WKL = Array[256]
WKO = Array[15] (Output
Array)
Variable Declaration
WKS = CALLCENTER (Scabble code)
WKI = 9999 (Password)
WKL
WKO
WKHALF = INT(WKLEN *
0.5)
(WKHALF = 2)
WKLEN = 15
CX = 1
WKNEXT = 1
WKL = 0
WKEVN =
WKS[1] = SubSTR[WKSEC,1,1]
WKS[2] = SubSTR[WKSEC,2,1]
WKS[3] = SubSTR[WKSEC,3,1]
WKS[4] = SubSTR[WKSEC,4,1]
WKS[5] = SubSTR[WKSEC,5,1]
WKS[6] = SubSTR[WKSEC,6,1]
WKS[7] = SubSTR[WKSEC,7,1]
WKS[8] = SubSTR[WKSEC,8,1]
WKS[9] = SubSTR[WKSEC,9,1]
WKS[10] = SubSTR[WKSEC,10,1]
BIN = EBCDIC[WKS,CX]
BIN = BIN + WKNEXT
WKANS = BIN * 3.141593
[MOD by and use only first
three Digit]
RX = a+a+:vava++nava:e+
WKANS
1
1
Rx > 256
Rx = Rx - 256
Y
Rx > WKLen
N
Rx = Rx - WKLen
Y
Cx >= 10
N
Cx = 1 Cx = Cx + 1
NXTBmp = WKHALF
WKL[RX] = 0
..-... Array ......
WKL[RX] = WKNext Rx = Rx + WKHALF
WkNext = WkNext + 2
Yes
No
WkNext > WkLen
And
WkENV =
WKEVN = X
WKNEXT = 2
WKNext <=
WKLen
2
A
A
Rx > WKLEN
Rx = Rx - WKLEN
NXTEMP = 1
Y
N
..r.--:.... Array WKL
.-.--.::-...\.. Password \ Array WKO
..-......: EBCIDIC ..-:.-.
256 ... -.-:...
..-... 15 (+-+.... WKO)
RX -:.....\. Ramdom
Password Position
..-..~....:....: EBCIDIC
Finding Array Position
..r.-- Process 1 -
+..\ Array WKL \.
..+ Password \ WKO 15 ..~.
-...-
Password .. 1 -:.... WKO[13]
Password .. 2 -:.... WKO[3]
Password .. 3 -:.... WKO[11]
Password .. 4 -:.... WKO[6]
.
.
.
Password .. 15 -:.... WKO[1]
2
Lx = 0
Cx = 0
Lx < WKLEN Return WKO
Lx = Lx + 1
WKCHAR = EBCDIC[WKI,LX]
Cx >= 10
CX = CX + 1 CX = 1
WKCHAR = WKCHAR +
EBCDIC[WKS , CX]
LX = WKL + LX
WKO , LX = CHAR[WKCHAR]
N Y
N Y
Encryption Position
8989
9999

You might also like