XUSRB1 ;iscSF/RWF - More Request Broker ;6/8/04 16:41
;;8.0;KERNEL;**28,82,135,275**;Jul 10, 1995
Q ;No entry from top
;
DECRYP(S) ;decrypt passed string
;VYD 5/19/95
N ASSOCIX,IDIX,ASSOCSTR,IDSTR
Q:$L(S)'>2 "" ;Bad call
S ASSOCIX=$A($E(S,$L(S)))-31 ;get associator string index
S IDIX=$A($E(S))-31 ;get identifier string index
S ASSOCSTR=$P($T(Z+ASSOCIX),";",3,9) ;get associator string
S IDSTR=$P($T(Z+IDIX),";",3,9) ;get identifier string
Q $TR($E(S,2,$L(S)-1),ASSOCSTR,IDSTR) ;translated result
;
ENCRYP(S) ;RWF 2/5/96
N %,ASSOCIX,IDIX,ASSOCSTR,IDSTR
S ASSOCIX=$R(20)+1 ;get associator index
F S IDIX=$R(20)+1 Q:ASSOCIX'=IDIX ;get different identifier index
S ASSOCSTR=$P($T(Z+ASSOCIX),";",3,9) ;get associator string
S IDSTR=$P($T(Z+IDIX),";",3,9) ;get identifier string
;translated result
Q $C(IDIX+31)_$TR(S,IDSTR,ASSOCSTR)_$C(ASSOCIX+31)
;
SENDKEYS(RESULT) ;send encryption keys to the client
;VYD 5/19/95
N %,X
S %=1
F S X=$P($T(Z+%),";",3,9) Q:X="" S RESULT(%)=X,%=%+1
Q
;
BLDDRUM Q ;don't run this tag
N I,%,ALLCHARS,RNDMSTR,CHAR
X "ZP Z" ;position insertion point
F I=1:1:20 D
. S ALLCHARS="" F %=32:1:126 S:$C(%)'="^" ALLCHARS=ALLCHARS_$C(%)
. S RNDMSTR=""
. F %=1:1:94 D
. . S POS=$R($L(ALLCHARS))+1,CHAR=$E(ALLCHARS,POS)
. . S RNDMSTR=RNDMSTR_CHAR
. . S ALLCHARS=$P(ALLCHARS,CHAR,1)_$P(ALLCHARS,CHAR,2) ;compress by 1
. X "ZI "" ;;""_RNDMSTR" ;save random string in routine
X "ZS" ;save routine
Q
;
;
Z ;;
;;VEB_0|=f3Y}m<5i$`W>znGA7P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**;Jul 10, 1995
+2 ;No entry from top
QUIT
+3 ;
DECRYP(S) ;decrypt passed string
+1 ;VYD 5/19/95
+2 NEW ASSOCIX,IDIX,ASSOCSTR,IDSTR
+3 ;Bad call
if $LENGTH(S)'>2
QUIT ""
+4 ;get associator string index
SET ASSOCIX=$ASCII($EXTRACT(S,$LENGTH(S)))-31
+5 ;get identifier string index
SET IDIX=$ASCII($EXTRACT(S))-31
+6 ;get associator string
SET ASSOCSTR=$PIECE($TEXT(Z+ASSOCIX),";",3,9)
+7 ;get identifier string
SET IDSTR=$PIECE($TEXT(Z+IDIX),";",3,9)
+8 ;translated result
QUIT $TRANSLATE($EXTRACT(S,2,$LENGTH(S)-1),ASSOCSTR,IDSTR)
+9 ;
ENCRYP(S) ;RWF 2/5/96
+1 NEW %,ASSOCIX,IDIX,ASSOCSTR,IDSTR
+2 ;get associator index
SET ASSOCIX=$RANDOM(20)+1
+3 ;get different identifier index
FOR
SET IDIX=$RANDOM(20)+1
if ASSOCIX'=IDIX
QUIT
+4 ;get associator string
SET ASSOCSTR=$PIECE($TEXT(Z+ASSOCIX),";",3,9)
+5 ;get identifier string
SET IDSTR=$PIECE($TEXT(Z+IDIX),";",3,9)
+6 ;translated result
+7 QUIT $CHAR(IDIX+31)_$TRANSLATE(S,IDSTR,ASSOCSTR)_$CHAR(ASSOCIX+31)
+8 ;
SENDKEYS(RESULT) ;send encryption keys to the client
+1 ;VYD 5/19/95
+2 NEW %,X
+3 SET %=1
+4 FOR
SET X=$PIECE($TEXT(Z+%),";",3,9)
if X=""
QUIT
SET RESULT(%)=X
SET %=%+1
+5 QUIT
+6 ;
BLDDRUM ;don't run this tag
QUIT
+1 NEW I,%,ALLCHARS,RNDMSTR,CHAR
+2 ;position insertion point
XECUTE "ZP Z"
+3 FOR I=1:1:20
Begin DoDot:1
+4 SET ALLCHARS=""
FOR %=32:1:126
if $CHAR(%)'="^"
SET ALLCHARS=ALLCHARS_$CHAR(%)
+5 SET RNDMSTR=""
+6 FOR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