You want to be able to encode a script or just a text file to UNICODE Base64 and have an easy way of manipulating the resulting string of characters. Possible scenarios are embedding powershell scripts in .bat files such as in the AppAssure Swiss knife Tool or as an easy way of manipulating passwords that customers do not want to be used in clear but are not of great importance -- such as is the case when a password is a required parameter for a script that cannot be run interactively. (If higher level encryption is needed please store the sensitive data in secure strings).
PowerShell Scripting Disclaimer:
This script is provided "as is" for the purpose of illustrating how product tasks may be performed in conjunction with PowerShell. Support shall not be liable for any direct, indirect, incidental, consequential, or other damage alleged in connection with the furnishing or use of this script or of the principles it demonstrates. See PowerShell Scripting Support for more information.
A powershell script has been prepared. The script allows selecting a file using the .Net Windows Open File Dialog, performs the conversion and copies the resulting string of characters to the clipboard so it is easy to paste it where necessary without worrying about broken line or inadvertently introduced carriage returns. If desired, the string can be converted back to the original text to check the accuracy of conversion.
Please note that this script is for support engineers only and requires Powershell 3.0 or later.
© ALL RIGHTS RESERVED. Feedback Terms of Use Privacy Cookie Preference Center