This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal enabledelayedexpansion | |
REM 获取当前脚本文件所在的目录 | |
set scriptDir=%~dp0 | |
REM 字体目录 | |
set fontDir=%windir%\Fonts | |
REM 遍历当前目录的所有 .ttf 文件 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.third.demo.test; | |
import java.security.*; | |
import java.security.interfaces.RSAPrivateKey; | |
import java.security.interfaces.RSAPublicKey; | |
import java.security.spec.InvalidKeySpecException; | |
import java.security.spec.PKCS8EncodedKeySpec; | |
import java.security.spec.X509EncodedKeySpec; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Security.Cryptography; | |
using System.Text; | |
/// <summary> | |
/// RSA 加密解密辅助类 | |
/// 需要使用 XML 格式的公私钥,可以借助 .Net 5 的 RSACryptoServiceProvider 类,将其他格式的 Key 预先转换为 XML 格式 | |
/// </summary> | |
public class RsaEncryptProvider | |
{ |