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 12
12
RootModule = ' ./Az.MySql.psm1'
13
13
14
14
# Version number of this module.
15
- ModuleVersion = ' 0.3.0 '
15
+ ModuleVersion = ' 0.3.1 '
16
16
17
17
# Supported PSEditions
18
18
CompatiblePSEditions = ' Core' , ' Desktop'
@@ -130,7 +130,7 @@ PrivateData = @{
130
130
# IconUri = ''
131
131
132
132
# ReleaseNotes of this module
133
- ReleaseNotes = ' * Added MySql flexible server cmdlets '
133
+ ReleaseNotes = ' * Fixed secure string issue '
134
134
135
135
# Prerelease string of this module
136
136
# Prerelease = ''
Original file line number Diff line number Diff line change 19
19
-->
20
20
## Upcoming Release
21
21
22
+ ## Version 0.3.1
23
+ * Fixed secure string issue
24
+
22
25
## Version 0.3.0
23
26
* Added MySql flexible server cmdlets
24
27
Original file line number Diff line number Diff line change 24
24
[ assembly: ComVisible ( false ) ]
25
25
[ assembly: CLSCompliant ( false ) ]
26
26
[ 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