Method | Description | |
---|---|---|
ConvertChannelLabel ( string channelLabel ) : string |
将code@ip的通道标识中code提取出来
|
|
DecryptByte2Str ( byte pwd, string nodeEntropy ) : string |
解密,字节转成字符串
|
|
DecryptPassword ( string userPwd, string nodeEntropy ) : string |
用户密码解密
|
|
EncryptPassword ( string userPassword, string nodeEntropy ) : string |
用户密码加密
|
|
EncryptStr2Byte ( string pwd, string nodeEntropy ) : byte[] |
字符串转成字节,加密
|
|
GetAppSetting ( string key ) : string |
获取web.config的AppSettings的项
|
|
GetAttribute ( |
读取节点信息
|
|
GetSingleNodeValue ( |
读取Node节点值
|
|
PraseBindManner ( string bindname, System.ServiceModel.Channels.Binding &bind ) : void |
解析绑定方式
|
|
SHA256Encrypt ( string str ) : string |
SHA256加密
|
|
SetAttribute ( |
读取节点信息
|
|
UpdateConfig ( string userPassword ) : void |
更新配置文件
|
public static ConvertChannelLabel ( string channelLabel ) : string | ||
channelLabel | string | 通道标识 |
return | string |
public static DecryptByte2Str ( byte pwd, string nodeEntropy ) : string | ||
pwd | byte | 密码数组解密 |
nodeEntropy | string | 增加机密效果,节点名称 |
return | string |
public static DecryptPassword ( string userPwd, string nodeEntropy ) : string | ||
userPwd | string | 用户密码.密文 |
nodeEntropy | string | 增加加密效果,节点名称 |
return | string |
public static EncryptPassword ( string userPassword, string nodeEntropy ) : string | ||
userPassword | string | 用户密码.明文 |
nodeEntropy | string | 增加加密效果,节点名称 |
return | string |
public static EncryptStr2Byte ( string pwd, string nodeEntropy ) : byte[] | ||
pwd | string | 字符串加密 |
nodeEntropy | string | 增加机密效果,节点名称 |
return | byte[] |
public static GetAppSetting ( string key ) : string | ||
key | string | |
return | string |
public static GetAttribute ( |
||
xmlElement | ||
nodeName | string | |
attributeName | string | |
return | string |
public static GetSingleNodeValue ( |
||
xmlElement | ||
nodeName | string | |
return | string |
public static PraseBindManner ( string bindname, System.ServiceModel.Channels.Binding &bind ) : void | ||
bindname | string | 绑定方式字符串 |
bind | System.ServiceModel.Channels.Binding | 绑定的句柄 |
return | void |
public static SHA256Encrypt ( string str ) : string | ||
str | string | |
return | string |
public static SetAttribute ( |
||
xmlElement | ||
nodeName | string | |
attributeName | string | |
attributeValue | string | |
return | void |
public static UpdateConfig ( string userPassword ) : void | ||
userPassword | string | |
return | void |