These are not recognized in PAW but save and just ignore the error or use Architect.
Create a new process with a string parameter called pClient then add the following to the prolog section:
Code: Select all
IF(pClient@='');
pClient=TM1User;
ENDIF;
sKey='}@BujrF]uxPmWkqw}&t]MeOwNOx{tvYO,eD';
sPassword='';
sCipher=CellGetS('}ClientProperties', pClient, 'PASSWORD');
sCipher=EncodePassword(sCipher);
sModifier=INT(LOG(Long(sCipher)+1))-2;
sModifier=IF(sModifier<0, 2, 0);
nIndex=Long(sKey);
While(nIndex>2);
If(Mod(nIndex-sModifier,3)=0);
sCharacter=SUBST(sKey,nIndex-2,1);
nCode=CODEW(sCharacter,1);
sCharacter=CHAR( nCode- INT(nIndex/3));
sPassword=sCharacter | sPassword;
Endif;
nIndex=nIndex-1;
End;
TextOutput('password.txt',pClient, sCipher, sPassword);
After the run completes, view the password.txt file located in your data folder for the result.