Skip to content

Commit 4403979

Browse files
authored
Create Encode-Base64
1 parent e0d37d4 commit 4403979

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Encode-Base64

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
function Encode-Base64{
2+
param([parameter(ValueFromPipeline)]$String);
3+
$String=[Convert]::ToBase64String([System.Text.Encoding]::Unicode.GetBytes($string));
4+
return $String
5+
}
6+

0 commit comments

Comments
 (0)