-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AES-CCM 及 AES-GCM ? #2
Comments
ok. I will publish a new version which support aes ccm and gcm net week. 我会在下周发一个新版本支持AES ccm和gcm。 |
@puckyeh Could u help to test it on android? if no problem I will implement the ios part 新版本支持android平台gcm加解密。可以帮测试下。 |
android gcm 加解密 測試看起來沒問題!! |
麻烦多做些测试,我正在实现ios部分
puckyeh <notifications@github.com>于2019年1月31日 周四21:23写道:
android gcm 加解密 測試看起來沒問題!!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AFBvoTEqjXuHHRXf5FuCZhTp_J-04Slyks5vI7NLgaJpZM4aZedl>
.
--
Yang Shi
201-15 bridgeland dr south
R3Y 0E7
|
我自行用 php 試著做 aes-128-gcm 的加解密 $plaintext = ('{"token":"ABCDEFGHIJKLMNOPQRSTUVWXYZ","device":"AABBCCDD"}'); php 轉出來的結果是 用你的 lib 轉出來的結果是 |
明白你的问题了,我需要修改一下秘钥参数格式。兼容更多的表示方式 |
@puckyeh |
加密 |
麻烦贴完整可运行代码,不要让我猜参数,整理你的代码。 |
不好意思, 當時想貼完整的, 但都是亂碼, 就沒想那麼多了, 我重新貼!! $plaintext = ('{"token":"ABCDEFGHIJKLMNOPQRSTUVWXYZ","device":"AABBCCDD"}'); |
我剛剛才發現, 你的 nonce 有做過 base64 的編碼 以下為參數 : php 的編碼結果 cipher2 的編碼結果 |
最近特别忙 等我缓口气再来解决这个问题 抱歉久等了
puckyeh <notifications@github.com>于2019年2月13日 周三09:17写道:
我剛剛才發現, 你的 nonce 有做過 base64 的編碼
所以我在 php 上的 $iv 也補做了 base64, 編碼出來的結果看起來對一半, 貼給你看看, 希望對你有幫助!!
以下為參數 :
$plaintext = '{"badgeCount":"3"}';
$key = '8c775176c699f9cd';
$iv = '0000000756632532';
php 的編碼結果
"pVlKqNVeHv06aENl2nau/n4M"
cipher2 的編碼結果
"pVlKqNVeHv06aENl2nau/n4M8G2uIl7vt0BFM7uFTtQb0Q==\n"
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AFBvobOBiumhoN04uqSMl2uPJOgEVFVaks5vNCx9gaJpZM4aZedl>
.
--
Yang Shi
201-15 bridgeland dr south
R3Y 0E7
|
我使用了你所提供的 cipher2 0.2.1這個 flutter plugin , 非常簡易好用!!
目前我需要 AES-CCM 及 AES-GCM 來做加密解密,
想請問一下, 你能夠提供並升級此插件嗎?
The text was updated successfully, but these errors were encountered: