$theTitle=wp_title(" - ", false); if($theTitle != "") { ?>
About Virtualization, VDI, SBC, Application Compatibility and anything else I feel like
A while ago I published a tool to Encode and Decode Citrix passwords. Today I am publishing a small update to this tool that makes it scriptable by adding a COM interface.
If you start the tool without parameters you will get the GUI, just like before:
To use the COM interface you first need to register the executable with the /regserver switch:
After the registration you can call it using any language that supports COM. To get you started I wrote a few examples
1 2 3 4 5 6 7 8 | # Create Citrix.Password COM Object $CtxPassword = New-Object -ComObject "Citrix.Password" # Get Hash for Clear Text Password $cleartext = 'password' $hash = $CtxPassword.Encode("1", $cleartext) "Citrix Password for {0} is: {1}" -f $cleartext, $hash |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ' Declare Variables Dim objCitrixPassword Dim strClearText Dim strHash ' The password in ClearText strClearText = "password" ' Create Citrix.Password COM Object Set objCitrixPassword = CreateObject("Citrix.Password") ' Get Hash for Clear Text Password strHash = objCitrixPassword.Encode("1", strClearText) WScript.Echo("Citrix Password for " & strClearText & " is: " & strHash) |
Please note that for security reasons I have chosen to only allow Encoding via the scripting interface.
CtxPassCom.zip (4621 downloads)
Leave a reply