将原文件读取为字节数组,然后用base64加密,得到加密的字符串 https://stackoverflow.com/questions/475421/base64-encode-a-pdf-in-c Use File.ReadAllBytes to load the PDF file, and then encode the byte array as normal using Convert.ToBase64String(bytes). 将加密后的字符串,直接写到文件中 https://st
项目中做云桌面对接,需要在项目中查出用户的明文密码,拼接到云桌面登陆地址中,防止明文传输,做了base64加密解密,防止小白黑客盗取用户密码. postgrelsql base64加密SQL语句: 查询用户证件号码后四位,base64加密的密码 SELECT substr(idno, length(idno) - 3) idno, ENCODE(cast(password as bytea),'base64') xm FROM security.oauth_user WHERE id = #{U