Delphi IdMappedPortTCP AES加密端口转发

Delphi 的工具,整合了,功能上还挺实用的。你只要把客户端、服务端和连起来,就能跑通整个代理链路。整体思路清晰,结构也简单,适合想快速搭环境的朋友。

mORMot的 AES 支持aes-ni指令,效率挺高,关键是不依赖openssl.dll,这点我觉得方便。你不用费劲去折腾外部依赖,拿来就能跑,在Delphi 1011上都能编译,挺省心的。

虽然作者说只写了ECB模式的简单版本,还没加填充啥的,但胜在够用。而且像CRCCTR模式,也提到了用对象方式实现——这个你要是熟的话,完全可以自己扩展下。

唯一小瑕疵是Indy事件的多线程用起来有点麻烦,作者也没深入去。嗯,但换个角度想,写得简单点反倒便于学习和二次开发。

如果你正好在搞 HTTP 穿透,或者想用 Delphi 搞个轻量级代理服务,这套代码挺值得一看。AES 部分你也可以参考下面几篇相关文章:

如果你打算自己加点安全逻辑,可以参考这些例子,结合原项目灵活用起来。

folder
delphi IdMappedPortTCP aes加密端口转发 预估大小:178个文件
file
mormot.core.os.dcu 319KB
file
mormot.core.rtti.dcu 299KB
file
mormot.crypt.core.dcu 269KB
file
mormot.core.text.dcu 218KB
file
mormot.core.base.dcu 231KB
file
mormot.core.os.dcu 402KB
file
mormot.core.rtti.dcu 390KB
file
mormot.crypt.core.dcu 369KB
file
mormot.core.text.dcu 303KB
file
mormot.core.base.dcu 295KB
file
mormot.core.os.dcu 319KB
file
mormot.core.rtti.dcu 299KB
file
mormot.crypt.core.dcu 269KB
file
mormot.core.text.dcu 218KB
file
mormot.core.base.dcu 231KB
file
mormot.core.os.dcu 402KB
file
mormot.core.rtti.dcu 390KB
file
mormot.crypt.core.dcu 369KB
file
mormot.core.text.dcu 303KB
file
mormot.core.base.dcu 295KB
zip 文件大小:24.19MB