Show / Hide Table of Contents

Class Bcrypt

Represents static wrappers for hasing strings with Bcrypt

Inheritance
Object
Bcrypt
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Slipe.Shared.Cryptography
Assembly: SlipeShared.dll
Syntax
public static class Bcrypt

Methods

| Improve this Doc View Source

Hash(String, Int32)

Hash a string with the Bcrypt algorithm

Declaration
public static Task<string> Hash(string input, int cost = 10)
Parameters
Type Name Description
String input
Int32 cost
Returns
Type Description
Task<String>
| Improve this Doc View Source

Verify(String, String)

Verify an input string against a Bcrypt hash

Declaration
public static Task<bool> Verify(string input, string hash)
Parameters
Type Name Description
String input
String hash
Returns
Type Description
Task<Boolean>
  • Improve this Doc
  • View Source
Back to top Generated by DocFX