File tree Expand file tree Collapse file tree 4 files changed +23
-4
lines changed Expand file tree Collapse file tree 4 files changed +23
-4
lines changed Original file line number Diff line number Diff line change 1212RootModule = ' ./Az.MySql.psm1'
1313
1414# Version number of this module.
15- ModuleVersion = ' 0.3.0 '
15+ ModuleVersion = ' 0.3.1 '
1616
1717# Supported PSEditions
1818CompatiblePSEditions = ' Core' , ' Desktop'
@@ -130,7 +130,7 @@ PrivateData = @{
130130 # IconUri = ''
131131
132132 # ReleaseNotes of this module
133- ReleaseNotes = ' * Added MySql flexible server cmdlets '
133+ ReleaseNotes = ' * Fixed secure string issue '
134134
135135 # Prerelease string of this module
136136 # Prerelease = ''
Original file line number Diff line number Diff line change 1919-->
2020## Upcoming Release
2121
22+ ## Version 0.3.1
23+ * Fixed secure string issue
24+
2225## Version 0.3.0
2326* Added MySql flexible server cmdlets
2427
Original file line number Diff line number Diff line change 2424[ assembly: ComVisible ( false ) ]
2525[ assembly: CLSCompliant ( false ) ]
2626[ assembly: Guid ( "00815AB0-DED8-4FE1-A7F0-5A98B87EAA3D" ) ]
27- [ assembly: AssemblyVersion ( "0.3.0 " ) ]
28- [ assembly: AssemblyFileVersion ( "0.3.0 " ) ]
27+ [ assembly: AssemblyVersion ( "0.3.1 " ) ]
28+ [ assembly: AssemblyFileVersion ( "0.3.1 " ) ]
Original file line number Diff line number Diff line change 1+ # This script converts securestring to plaintext
2+
3+ param (
4+ [Parameter (Mandatory , ValueFromPipeline )]
5+ [System.Security.SecureString ]
6+ ${SecureString}
7+ )
8+
9+ $ssPtr = [System.Runtime.InteropServices.Marshal ]::SecureStringToBSTR($SecureString )
10+ try {
11+ $plaintext = [System.Runtime.InteropServices.Marshal ]::PtrToStringBSTR($ssPtr )
12+ } finally {
13+ [System.Runtime.InteropServices.Marshal ]::ZeroFreeBSTR($ssPtr )
14+ }
15+
16+ return $plaintext
You can’t perform that action at this time.
0 commit comments