C#:实现仿射密码加解密算法 C# 仿射密码加解密算法,可以使用以下代码实现: public static string Encrypt(string plainText, int a, int b) { StringBuilder cipherT