zoukankan      html  css  js  c++  java
  • 生成12位十六进制密码

    Random r = new Random();
                byte[] bytes = new byte[6];
                
                var t = new StringBuilder();
                for (int j = 0; j < 16; j++)
                {
                    r.NextBytes(bytes);
                    t.AppendLine("KeyA["+ j +"] = "" + ByteHexHelper.ByteToHex(bytes) + "";");
                }
                for (int j = 0; j < 16; j++)
                {
                    r.NextBytes(bytes);
                    t.AppendLine("KeyB[" + j + "] = "" + ByteHexHelper.ByteToHex(bytes) + "";");
                }
                textBox3.Text = t.ToString();
  • 相关阅读:
    10.23
    四则运算(1)
    10.12
    10.22
    今日总结
    Java自学
    Java自学
    Java自学
    Java自学
    Java自学
  • 原文地址:https://www.cnblogs.com/shiningrise/p/5710663.html
Copyright © 2011-2022 走看看