function ConvertTo-Base64($string) { $bytes = [System.Text.Encoding]::UTF8.GetBytes($string); $encoded = [System.Convert]::ToBase64String($bytes); return $encoded; } function ConvertFrom-Base64($string) { $bytes = [System.Convert]::FromBase64String($string); $decoded = [System.Text.Encoding]::UTF8.GetString($bytes); return $decoded; } #该片段来自于http://outofmemory.cn
收藏
0人收藏
- 2014-11-17 09:30:10基于 openssl 的密码管理脚本 by shixiaoliang
- 2014-04-27 13:58:59sxs.exe 的查杀 by 好剑
- 2014-04-28 12:17:19别出心裁的加密方式 by xfk
- 2014-06-13 09:59:08Powershell加密解密字节 by Smile_love
- 2014-11-07 10:03:07uniq 常用代码 by 0晓风残月0
- 2014-06-26 11:46:03Bash I / O 重定向的例子 by Echo
- 2014-06-27 10:27:13从机器A登录至机器B,使用SSH进行无密码登录 by 屠夫
- 2014-09-15 21:27:48批量赋予可执行权限 by 凤歌
- 2014-10-02 12:18:58iptables防火墙 by Echo
- 2014-10-22 10:59:46清除php木马的脚本 by Smile_love
- 2017-12-11 17:37:06表变量,代替临时表 by xuleaper
相关聚客文章