delphi 取得固定长度的随机字符串


本文整理自网络,侵删。

 
unit Unit1;

interface

uses
  System.Hash, Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
  Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.ExtCtrls;

type
  TForm1 = class(TForm)
    ListBox1: TListBox;
    btnAction: TButton;
    procedure btnActionClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.btnActionClick(Sender: TObject);
begin
  self.ListBox1.Items.Add(THash.GetRandomString(32));
end;

end.

相关阅读 >>

Delphi 调用api.ocr.space的ocr接口

Delphi 生成全球唯一标识符

Delphi 流分割与合并文件的函数

Delphi第三方控件通用安装方法

Delphi md5加密base64加解密

Delphi 将对象转换为json字符串或tjsonobject

Delphi fmx listbox长按复制(移动平台)

Delphi 如何将memo或richedit保存为utf 8文本文件?

Delphi 双进程监控保护

我的Delphi开发经验谈

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...