久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

AES 加密/解密 Delphi &PHP

AES Encrypt/Decrypt Delphi amp; PHP(AES 加密/解密 Delphi amp;PHP)
本文介紹了AES 加密/解密 Delphi &PHP的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我的 Delphi 應用程序使用 TurboPower LockBox 3 使用 AES 256 加密明文信息.我現在想使用 PHP 解密此信息.但是 TurboPower LockBox 3 存在一些互操作性問題.

My Delphi application uses TurboPower LockBox 3 to encrypt a plaintext information using AES 256. I now want to decrypt this information using PHP. But TurboPower LockBox 3 has some interoperability issues.

請在此處查看 LockBox 3 作者的帖子以了解詳細信息:

Please check the post by LockBox 3 author here for details :

http://lockbox.seanbdurkin.id.au/tiki-view_forum_thread.php?comments_parentId=363&topics_offset=1

還有一篇關于 Stackoverflow 的類似帖子

And a similar post on Stackoverflow

Delphi 中的安全密鑰對加密解決方案 &PHP?

在 LockBox 3 中,在加密期間,您設置密碼.然后將此密碼用作生成密鑰和 iv 的種子.那么有沒有人能夠模仿 PHP 端的密鑰生成方法?或者有什么方法可以讓我獲得 LockBox 3 生成的密鑰/IV 并將其放入我的 PHP 代碼中,以便可以解密文件?

In LockBox 3, during encryption, you set a password. This password is then used as a seed to generate the key and iv. So has anyone been able to mimic the key generation method on PHP side ? Or is there any way i can get the Key/IV being generated by LockBox 3 and put it in my PHP code so the file can be decrypted ?

推薦答案

IV

如前所述,IV nonce 被添加到密文消息中.所以要在 PHP 端獲取它,只需提取前 8 個字節即可.

IV

As stated to you before, the IV nonce is prepended to the ciphertext message. So to obtain it on the PHP side, simply extract the first 8 bytes.

您需要決定共享密鑰是密碼字符串格式還是二進制密鑰格式.symetric Key 類 (TSymetricKey) 有一個 SaveToStream() 方法,它按您的預期工作.TCodec 組件有一個 Key 屬性,設置密碼、鏈接模式和密碼后即可使用.

You need to decide if the shared secret is in password-string format or binary key format. The symetric Key class (TSymetricKey) has a method SaveToStream(), which works as you would expect it to. The TCodec component has a Key property, which will be available after you set the cipher, chaining mode and password.

所有方法都是自文檔化的,并且幾乎按照它們的閱讀方式執行,但是如果您需要一些演示代碼,將密鑰保存到流中,請告訴我.

All of the methods are self-documenting and do pretty much what they read like, however if you need some demo code, saving a key to a stream, let me know.

這篇關于AES 加密/解密 Delphi &PHP的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Joining 2 tables in SELECT(MYSQL/PHP)(在 SELECT(MYSQL/PHP) 中加入 2 個表)
How to make lt;option selected=quot;selectedquot;gt; set by MySQL and PHP?(如何使lt;option selected=“selectedgt;由 MySQL 和 PHP 設置?)
Auto populate a select box using an array in PHP(使用 PHP 中的數組自動填充選擇框)
PHP SQL SELECT where like search item with multiple words(PHP SQL SELECT where like search item with multiple words)
json_encode produce JSON_ERROR_UTF8 from MSSQL-SELECT(json_encode 從 MSSQL-SELECT 產生 JSON_ERROR_UTF8)
MySQL ORDER BY rand(), name ASC(MySQL ORDER BY rand(),名稱 ASC)
主站蜘蛛池模板: 精品产国自在拍 | 成人高清视频在线观看 | 亚洲精品自在在线观看 | 久久精品一 | 日韩淫片免费看 | 国产分类视频 | 亚洲成人免费在线观看 | 隔壁老王国产在线精品 | 亚洲电影专区 | 91婷婷韩国欧美一区二区 | 日韩一区二区三区在线播放 | 日韩一级精品视频在线观看 | 瑟瑟免费视频 | 三区在线 | 国产精品高清一区二区三区 | 视频一区在线 | 欧美黑人一级爽快片淫片高清 | 婷婷狠狠| 亚洲欧洲一区 | 久久久久久久久久久一区二区 | 五月天综合网 | 不卡一二三区 | 亚洲精品日韩一区二区电影 | 日韩毛片免费看 | 一本大道久久a久久精二百 欧洲一区二区三区 | 欧美成人手机在线 | 综合另类 | 国产一级在线观看 | 亚洲自拍偷拍欧美 | 精品少妇v888av | 国产女人第一次做爰毛片 | 亚洲免费网站 | 久久国产成人 | 成年人精品视频 | 成人午夜网站 | 精品国产乱码久久久久久1区2区 | 日韩中文一区二区三区 | 亚洲一区二区精品 | 色综合99| 自拍偷拍亚洲视频 | 国产视频一区二区三区四区五区 |