C# Класс ServiceStack.HmacUtils

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Authenticate ( byte encryptedBytes, byte authKey, byte iv ) : byte[]
CreateHashAlgorithm ( byte authKey ) : HMAC
DecryptAuthenticated ( byte authEncryptedBytes, byte cryptKey ) : byte[]
Verify ( byte authEncryptedBytes, byte authKey ) : bool

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

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

public static Authenticate ( byte encryptedBytes, byte authKey, byte iv ) : byte[]
encryptedBytes byte
authKey byte
iv byte
Результат byte[]

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

public static CreateHashAlgorithm ( byte authKey ) : HMAC
authKey byte
Результат System.Security.Cryptography.HMAC

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

public static DecryptAuthenticated ( byte authEncryptedBytes, byte cryptKey ) : byte[]
authEncryptedBytes byte
cryptKey byte
Результат byte[]

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

public static Verify ( byte authEncryptedBytes, byte authKey ) : bool
authEncryptedBytes byte
authKey byte
Результат bool