Search Results for

    Show / Hide Table of Contents

    Class CryptographyHelper

    Provide some crypthography helper

    Inheritance
    System.Object
    CryptographyHelper
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Simplic.Security.Cryptography
    Assembly: Simplic.CoreLib.dll
    Syntax
    public class CryptographyHelper

    Methods

    | Improve this Doc View Source

    DecryptString(String, String)

    Decrypts the string.

    Declaration
    public static string DecryptString(string cipherText, string Password)
    Parameters
    Type Name Description
    System.String cipherText

    The cipher text.

    System.String Password

    The password.

    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    EncryptString(String, String)

    Encrypts the string.

    Declaration
    public static string EncryptString(string clearText, string Password)
    Parameters
    Type Name Description
    System.String clearText

    The clear text.

    System.String Password

    The password.

    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    GetMD5Hash(String)

    Generate MD5-Hash from string (Use UTF-8 encoding)

    Declaration
    public static string GetMD5Hash(string input)
    Parameters
    Type Name Description
    System.String input

    Input string

    Returns
    Type Description
    System.String

    Returns MD5-Hash

    | Improve this Doc View Source

    GetMD5Hash(String, Encoding)

    Generate MD5-Hash from string

    Declaration
    public static string GetMD5Hash(string input, Encoding encoding)
    Parameters
    Type Name Description
    System.String input

    Input string

    System.Text.Encoding encoding

    Encoding

    Returns
    Type Description
    System.String

    Returns MD5-Hash

    | Improve this Doc View Source

    HashSHA256(Byte[])

    Create sha256 hash from byte-array

    Declaration
    public static string HashSHA256(byte[] toHash)
    Parameters
    Type Name Description
    System.Byte[] toHash

    Byte to hash

    Returns
    Type Description
    System.String

    Hashed string

    | Improve this Doc View Source

    HashSHA256(String)

    Create sha256 hash from string (Use UTF-8 encoding)

    Declaration
    public static string HashSHA256(string toHash)
    Parameters
    Type Name Description
    System.String toHash

    String to hash

    Returns
    Type Description
    System.String

    Hashed string

    | Improve this Doc View Source

    HashSHA256(String, Encoding)

    Create sha256 hash from string

    Declaration
    public static string HashSHA256(string toHash, Encoding encoding)
    Parameters
    Type Name Description
    System.String toHash

    String to hash

    System.Text.Encoding encoding

    String encoding

    Returns
    Type Description
    System.String

    Hashed string

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2018 SIMPLIC GmbH
    Generated by DocFx