NSIS进行Base64编码解码
侧边栏壁纸
  • 累计撰写 17 篇文章
  • 累计收到 1 条评论

NSIS进行Base64编码解码

nsisfans
2022-01-15 / 0 评论 / 8 阅读 / 正在检测是否收录...

Base64编码解码是我们在编程中常用的操作,贾可同学在NSIS中实现代码如下:

!include MUI2.nsh
!include Base64.nsh

Name "Base64"
OutFile "Base64.exe"

ShowInstDetails show

!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_LANGUAGE English

Section "-"
    ${Base64_Encode} "THIS WILL BE ENCODED"
    Pop $0
    DetailPrint "$0"
    ${Base64_Decode} "VEhJUyBXSUxMIEJFIERFQ09ERUQ="
    Pop $0
    DetailPrint "$0"
SectionEnd

Section "Uninstall"
    ${Base64_Encode} "THIS WILL BE ENCODED"
    Pop $0
    DetailPrint "$0"
    ${Base64_Decode} "VEhJUyBXSUxMIEJFIERFQ09ERUQ="
    Pop $0
    DetailPrint "$0"
SectionEnd

文件下载

0

评论 (0)

取消