Page 1 of 1

Recovering the value of a function (enx, charlib, string encryption)

Posted: 03 May 2018 05:25
by Xandr0s
Good morning, everyone,

Looking to hide a password, I came across this post: viewtopic.php?t=2613#p12015

I would like to reuse this function and pass the decrypted password to a command (net use).

I could use the "outpup" variable, but I'm afraid it might be a problem at some point because of the "for" that follows.

So I tried to modify "echo(%%A)" to put the result in a variable, but I couldn't do it.

Could you help me?

Have a nice day

Re: Recovering the value of a function (enx, charlib, string encryption)

Posted: 03 May 2018 09:32
by aGerman
Not sure what your problem actually is. The function already supports assigning the value to a variable. All you have to do is passing the variable name as second argument.

Steffen

Re: Recovering the value of a function (enx, charlib, string encryption)

Posted: 05 May 2018 13:52
by Xandr0s
Indeed, I found the solution, I was not calling the function correctly.

I had to do: call enx input output

Thank you for your help.

Have a nice day