Skip to content
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

【文档】修正 HMAC-SHA256 描述 #1352

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public class GenerateTestUserSig {
/**
* 计算 UserSig 签名
* <p>
* 函数内部使用 HMAC-SHA256 非对称加密算法,对 SDKAPPID、userId 和 EXPIRETIME 进行加密。
* 函数内部使用 HMAC-SHA256 对称加密算法,对 SDKAPPID、userId 和 EXPIRETIME 进行加密。
*
* @note: 请不要将如下代码发布到您的线上正式版本的 App 中,原因如下:
* <p>
Expand All @@ -130,7 +130,7 @@ public class GenerateTestUserSig {
/**
* Calculate UserSig
* <p>
* The asymmetric encryption algorithm HMAC-SHA256 is used in the function to calculate UserSig based on SDKAppID, UserID, and EXPIRETIME.
* The symmetric encryption algorithm HMAC-SHA256 is used in the function to calculate UserSig based on SDKAppID, UserID, and EXPIRETIME.
*
* @note: Do not use the code below in your commercial application. This is because:
* <p>
Expand Down
4 changes: 2 additions & 2 deletions Mac/Demo/TUIKitDemo/Debug/GenerateTestUserSig.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ static NSString * const SECRETKEY = @"";
/**
* 计算 UserSig 签名
*
* 函数内部使用 HMAC-SHA256 非对称加密算法,对 SDKAPPID、userId 和 EXPIRETIME 进行加密。
* 函数内部使用 HMAC-SHA256 对称加密算法,对 SDKAPPID、userId 和 EXPIRETIME 进行加密。
*
* @note: 请不要将如下代码发布到您的线上正式版本的 App 中,原因如下:
*
Expand All @@ -118,7 +118,7 @@ static NSString * const SECRETKEY = @"";
/**
* Calculate UserSig
*
* The asymmetric encryption algorithm HMAC-SHA256 is used in the function to calculate UserSig based on SDKAppID, UserID, and EXPIRETIME.
* The symmetric encryption algorithm HMAC-SHA256 is used in the function to calculate UserSig based on SDKAppID, UserID, and EXPIRETIME.
*
* Attention: Do not use the code below in your commercial application. This is because:
*
Expand Down
4 changes: 2 additions & 2 deletions Windows/Demo/IMApp/GenerateTestUserSig.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class GenerateTestUserSig
/**
* 计算 UserSig 签名
*
* 函数内部使用 HMAC-SHA256 非对称加密算法,对 SDKAPPID、userId 和 EXPIRETIME 进行加密。
* 函数内部使用 HMAC-SHA256 对称加密算法,对 SDKAPPID、userId 和 EXPIRETIME 进行加密。
*
* @note: 请不要将如下代码发布到您的线上正式版本的 App 中,原因如下:
*
Expand All @@ -122,7 +122,7 @@ class GenerateTestUserSig
/**
* Calculate UserSig
*
* The asymmetric encryption algorithm HMAC-SHA256 is used in the function to calculate UserSig based on SDKAppID, UserID, and EXPIRETIME.
* The symmetric encryption algorithm HMAC-SHA256 is used in the function to calculate UserSig based on SDKAppID, UserID, and EXPIRETIME.
*
* @note: Do not use the code below in your commercial application. This is because:
*
Expand Down
4 changes: 2 additions & 2 deletions iOS/Demo/TUIKitDemo/Private/GenerateTestUserSig.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ static NSString * const public_SECRETKEY = @"";
/**
* 计算 UserSig 签名
*
* 函数内部使用 HMAC-SHA256 非对称加密算法,对 SDKAPPID、userId 和 EXPIRETIME 进行加密。
* 函数内部使用 HMAC-SHA256 对称加密算法,对 SDKAPPID、userId 和 EXPIRETIME 进行加密。
*
* @note: 请不要将如下代码发布到您的线上正式版本的 App 中,原因如下:
*
Expand All @@ -126,7 +126,7 @@ static NSString * const public_SECRETKEY = @"";
/**
* Calculate UserSig
*
* The asymmetric encryption algorithm HMAC-SHA256 is used in the function to calculate UserSig based on SDKAppID, UserID, and EXPIRETIME.
* The symmetric encryption algorithm HMAC-SHA256 is used in the function to calculate UserSig based on SDKAppID, UserID, and EXPIRETIME.
*
* Attention: Do not use the code below in your commercial application. This is because:
*
Expand Down