Skip to content
This SDK only works with devices released within the past 3 years. We regularly optimize and update the SDK to ensure compatibility and performance. We do not guarantee compatibility or provide technical support for devices older than 3 years.

# NET_SDK_GetSha1Encrypt

### Interface Definition

C++C#

    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