C# Class Tencent.Cryptography

腾讯提供的微信加解密服务。
Datei anzeigen Open project: Chinaccn/surfboard Class Usage Examples

Public Methods

Method Description
AES_decrypt ( string Input, string EncodingAESKey, string &appid ) : string

解密方法

AES_encrypt ( string Input, string EncodingAESKey, string appid ) : string
HostToNetworkOrder ( int inval ) : int
HostToNetworkOrder ( uint inval ) : uint

Private Methods

Method Description
AES_decrypt ( string Input, byte Iv, byte Key ) : byte[]
AES_encrypt ( byte Input, byte Iv, byte Key ) : string
AES_encrypt ( string Input, byte Iv, byte Key ) : string
CreateRandCode ( int codeLen ) : string
KCS7Encoder ( int text_length ) : byte[]
chr ( int a ) : char
decode2 ( byte decrypted ) : byte[]

Method Details

AES_decrypt() public static method

解密方法
public static AES_decrypt ( string Input, string EncodingAESKey, string &appid ) : string
Input string 密文
EncodingAESKey string
appid string
return string

AES_encrypt() public static method

public static AES_encrypt ( string Input, string EncodingAESKey, string appid ) : string
Input string
EncodingAESKey string
appid string
return string

HostToNetworkOrder() public static method

public static HostToNetworkOrder ( int inval ) : int
inval int
return int

HostToNetworkOrder() public static method

public static HostToNetworkOrder ( uint inval ) : uint
inval uint
return uint