Different output form AES 256 PHP and Delphi FMX
@MHumm 已经在做这个了。
开始于 2021年10月25日。
评估
这个 Issue 还没有评估数据。
描述
I have to encrypt/decrypt a string on AES 256 CBC, and I'm getting a shorter string compared wit PHP.
PHP Example:
https://gist.github.com/ezegg/8d54c98b8fbdce263409eabaf8afabe6
PHP Output
DB8BRqb2q6BW/HLQYN2pr2n9DTL1Q8kp2lvZi3rogbxjEasiMbgU4q5/vDav+p0O0KWlfMm
NekXN+UkbUiB+s/LNf1MF2EgOQEZoivxgp+UJxsuT5vDIMmQXUkuwkyUE+a7hH5FwaDDY8D
NwW2kowFXeE69AcOMaWnyZ+YplKNEUOzQzLstBxWnJE+aSr0+vQN3knkIIjbT10yfSTV/OQA==
FMX Output.
DB8BRqb2q6BW/HLQYN2pr2n9DTL1Q8kp2lvZi3rogbxjEasiMbgU4q5/vDav+p0O0KWlfMm
NekXN+UkbUiB+s/LNf1MF2EgOQEZoivxgp+UJxsuT5vDIMmQXUkuwkyUE+a7hH5FwaDDY8D
NwW2kowFXeE69AcOMaWnyZ+YplKNEUOzQzLstBxWnJE+aSr0+v9Q21xA==
As you can see, string is "shorter" in Delphi.
here is the test string, Secret key and init vector
SECRET_KEY = "HPo7OLqB4Fkk4E2yGOtwqw8H5fHR9kNx67OR4g4UdlA=";
IV = "p5ldmBPdd/9pjC0bDC/nSg==";
Input String:
{"idServicio":79, "idProducto":209 , "referencia": "40425475190118187271", "montoPago": 9999, "telefono":"1111111111", "horaLocal":"20200401222821"}
Thank you
- 主要语言
- HTML
- 星标
- 286
- 派生
- 78
- 平均合并
- 1 天 23 分钟
- 30 天内合并 PR
- 5
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
MHumm/DelphiEncryptionCompendium 的其他 Issue
-
CRC64 - PKI Addition可能重新可做 @MHumm 于 150 天前认领,目前没有进行中的 PR。 未关闭enhancement help wanted
MHumm/DelphiEncryptionCompendium#93 · 1 条评论 · 已指派 1 人 ·
-
Missing PUInt8Array type in the GetIt version.可能重新可做 @MHumm 于 162 天前认领,目前没有进行中的 PR。 未关闭bug delphi
MHumm/DelphiEncryptionCompendium#92 · 2 条评论 · 已指派 1 人 ·
-
Confused by NEXTGEN directive可能重新可做 @MHumm 于 532 天前认领,目前没有进行中的 PR。 未关闭bug
MHumm/DelphiEncryptionCompendium#88 · 8 条评论 · 已指派 1 人 ·
-
Authenticated tag is wrong on streams可能重新可做 @MHumm 于 542 天前认领,目前没有进行中的 PR。 未关闭bug
MHumm/DelphiEncryptionCompendium#87 · 20 条评论 · 已指派 1 人 ·
-
Support for AEGIS 256可能重新可做 @MHumm 于 853 天前认领,目前没有进行中的 PR。 未关闭enhancement help wanted
MHumm/DelphiEncryptionCompendium#77 · 3 条评论 · 1 个 reaction · 已指派 1 人 ·