Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
encrypt/decrypt in TSMenu?
#1
Hi there!

Is it possible to decrypt a password, stored in the registry in a TS Menu? Since it is not possible to use to use variables I can't use s.decrypt.
Or do I have to outsource it to a function?

I have these entries to log into the SAP system and i want to store the password now encrypted in the registry so i can use it in more scripts
Code:
Copy      Help
c11 :run "sapshcut.exe" "-pw=''PASSWORD'' -u=USER -l=EN -clt=001 -desc=''C11   Dev. System Europe''"

Regards
Staati
#2
c11 Confusedtr s; rget s ...; s.decrypt(...); run "sapshcut.exe" F"-pw=''{s}'' -u=USER -l=EN -clt=001 -desc=''C11 Dev. System Europe''"

or create a function that does all it, and call it from TS menu.
#3
Thanks Gintaras!

Good to know that F"..." can be used for variables in strings. This makes many things ALOT easier Wink


Forum Jump:


Users browsing this thread: 2 Guest(s)