Delphi xe7 MD5算法

复制代码
uses IdHash, IdHashMessageDigest;

function GetStringMD5(const AInPut: string): string;
var
  MD5: TIdHashMessageDigest5;
{$IF CompilerVersion<20.0}
  Digest: T4x4LongWordRecord;
{$IFEND}
begin
  MD5 := TIdHashMessageDigest5.Create;
  try
{$IF CompilerVersion>20.0}   // Delphi 2009 +
    Result := LowerCase(MD5.HashStringAsHex(AInPut));
{$ELSE}
    Digest := MD5.HashValue(AInPut);
    Result := LowerCase(MD5.AsHex(Digest));
{$IFEND}
  finally
    MD5.Free;
  end;
end;

摘自:https://www.cnblogs.com/rtcmw/p/12678595.html

相关推荐
水饺编程4 小时前
第4章,[标签 Win32] :TextOut 测试案例2
c语言·c++·windows·visual studio
i建模4 小时前
Omarchy挂载windows磁盘
linux·运维·windows
A懿轩A5 小时前
【Java 基础编程】Java 集合框架详解:List/Set/Map 选型 + ArrayList/HashMap 原理与使用
java·windows·list
ol木子李lo5 小时前
Linux 命令备忘录
linux·运维·服务器·windows·编辑器·ssh·bash
三无少女指南6 小时前
开发者环境配置最佳实践:编辑器Cursor ,VS Code的上位体验实现 AI 与 WSL 联动
运维·c语言·数据库·windows·git·编辑器
水木姚姚7 小时前
string类(C++)
开发语言·c++·windows·vscode·开发工具
love530love8 小时前
ZeroClaw Reflex UI完整搭建流程——ZeroClaw Gateway + LM Studio + Reflex 本地 AI 管理面板
人工智能·windows·gateway·lm studio·reflex·openclaw·zeroclaw
love530love16 小时前
【ComfyUI】解决 ModuleNotFoundError: No module named ‘inference_core_nodes‘ 问题
人工智能·windows·python·comfyui·inference-core
Bruce_Liuxiaowei18 小时前
Windows系统安全加固——从基础到进阶的实战配置
windows·安全·系统安全
RZcKUXIhvPR21 小时前
基于VSG控制(虚拟同步发电机控制)的模块化多电平变流器MM C 通过设置可编程电源,模拟电网...
windows