Frm2.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsfORcOUNT
{
public partial class Frm2 : Form
{
public Frm2()
{
InitializeComponent();
}
private void btnOther_Click(object sender, EventArgs e)
{
string strOther = txtOther.Text.Trim();
lbString.Text = StrPwdHider(strOther);
lbByte.Text = "字符byte个数" + StrLength(strOther).ToString() ;
//lbString.Text = strOther.PadLeft(i, '0');
}
/// <summary>
/// 用*号替换字符
/// </summary>
/// <param name="strOther"></param>
/// <returns></returns>
public string StrPwdHider(string strOther)
{
int i = strOther.Length;
string str = string.Empty;
for (int a = 0; a < i; a++)
{
str += "*";
}
str += DateTime.Now.ToString();
return str;
}
public int StrLength(string strOther)
{
if (strOther != null)
{
byte[] bs = ASCIIEncoding.ASCII.GetBytes("UTF-8");
return bs.Count();
}
else
{
return 0;
}
}
/// <summary>
/// 替换字符串
/// </summary>
/// <param name="str">待处理的字符串</param>
后面还有 32 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。