Skip to content

NET_SDK_GetSha1Encrypt

Interface Definition

1
2
3
4
5
6
7
int NET_SDK_GetSha1Encrypt(
    LONG lUserID,
    const void* pIn,
    int iLenIn,
    void* szOut,
    int outLen,
    int* lpBytesReturned);
1
2
3
4
5
6
7
public static extern int NET_SDK_GetSha1Encrypt(
    int lUserID,
    string pIn,
    int iLenIn,
    IntPtr szOut,
    int outLen,
    ref int lpBytesReturned);

Function Description

Data SHA1 encryption.

Parameter Description

Parameters Type Remark
lUserIDin LONG User ID, the return value of NET_SDK_Login or NET_SDK_LoginEx.
pInin void* Input data.
iLenInin int Input data length.
szOutout void* Encrypted data.
outLenout int The length of the encrypted data.
lpBytesReturnedout int* This parameter is not currently used.

Return Value

  • type:int

  • remark:-1 indicates failure, and the rest indicates the output data size.

Remarks

None

Error Code