C# Класс Yodiwo.Cryptography.CryptoEngine

Показать файл Открыть проект

Открытые методы

Метод Описание
ComputeHash ( Windows.Storage.Streams.IBuffer data ) : byte[]
ComputeHash ( byte data ) : byte[]
ComputeHash ( string data ) : byte[]
CreateKey ( String strPassword, byte strSalt, UInt32 iterationCount = 10000, String AlgorithmName = null ) : CryptographicKey
Decrypt ( Windows.Storage.Streams.IBuffer encBuffer, CryptographicKey key, Windows.Storage.Streams.IBuffer iv, String AlgorithmName = null ) : Windows.Storage.Streams.IBuffer
DecryptString ( Windows.Storage.Streams.IBuffer encBuffer, CryptographicKey key, Windows.Storage.Streams.IBuffer iv, String AlgorithmName = null ) : string
Encrypt ( Windows.Storage.Streams.IBuffer data, CryptographicKey key, Windows.Storage.Streams.IBuffer &iv, String AlgorithmName = null ) : Windows.Storage.Streams.IBuffer
EncryptString ( String strMsg, CryptographicKey key, Windows.Storage.Streams.IBuffer &iv, String AlgorithmName = null ) : Windows.Storage.Streams.IBuffer

Описание методов

ComputeHash() публичный статический Метод

public static ComputeHash ( Windows.Storage.Streams.IBuffer data ) : byte[]
data Windows.Storage.Streams.IBuffer
Результат byte[]

ComputeHash() публичный статический Метод

public static ComputeHash ( byte data ) : byte[]
data byte
Результат byte[]

ComputeHash() публичный статический Метод

public static ComputeHash ( string data ) : byte[]
data string
Результат byte[]

CreateKey() публичный статический Метод

public static CreateKey ( String strPassword, byte strSalt, UInt32 iterationCount = 10000, String AlgorithmName = null ) : CryptographicKey
strPassword String
strSalt byte
iterationCount System.UInt32
AlgorithmName String
Результат Windows.Security.Cryptography.Core.CryptographicKey

Decrypt() публичный статический Метод

public static Decrypt ( Windows.Storage.Streams.IBuffer encBuffer, CryptographicKey key, Windows.Storage.Streams.IBuffer iv, String AlgorithmName = null ) : Windows.Storage.Streams.IBuffer
encBuffer Windows.Storage.Streams.IBuffer
key Windows.Security.Cryptography.Core.CryptographicKey
iv Windows.Storage.Streams.IBuffer
AlgorithmName String
Результат Windows.Storage.Streams.IBuffer

DecryptString() публичный статический Метод

public static DecryptString ( Windows.Storage.Streams.IBuffer encBuffer, CryptographicKey key, Windows.Storage.Streams.IBuffer iv, String AlgorithmName = null ) : string
encBuffer Windows.Storage.Streams.IBuffer
key Windows.Security.Cryptography.Core.CryptographicKey
iv Windows.Storage.Streams.IBuffer
AlgorithmName String
Результат string

Encrypt() публичный статический Метод

public static Encrypt ( Windows.Storage.Streams.IBuffer data, CryptographicKey key, Windows.Storage.Streams.IBuffer &iv, String AlgorithmName = null ) : Windows.Storage.Streams.IBuffer
data Windows.Storage.Streams.IBuffer
key Windows.Security.Cryptography.Core.CryptographicKey
iv Windows.Storage.Streams.IBuffer
AlgorithmName String
Результат Windows.Storage.Streams.IBuffer

EncryptString() публичный статический Метод

public static EncryptString ( String strMsg, CryptographicKey key, Windows.Storage.Streams.IBuffer &iv, String AlgorithmName = null ) : Windows.Storage.Streams.IBuffer
strMsg String
key Windows.Security.Cryptography.Core.CryptographicKey
iv Windows.Storage.Streams.IBuffer
AlgorithmName String
Результат Windows.Storage.Streams.IBuffer