Search Results for

    Show / Hide Table of Contents
    View Source

    Class EncryptionHelper

    Inheritance
    object
    Namespace: Umbraco.Cms.Web.Common.Security
    Assembly: Umbraco.Web.Common.dll
    Syntax
    public class EncryptionHelper

    Methods

    View Source

    CreateEncryptedRouteString(IDataProtectionProvider, string, string, string, object?)

    This is used in methods like BeginUmbracoForm and SurfaceAction to generate an encrypted string which gets submitted in a request for which Umbraco can decrypt during the routing process in order to delegate the request to a specific MVC Controller.

    Declaration
    public static string CreateEncryptedRouteString(IDataProtectionProvider dataProtectionProvider, string controllerName, string controllerAction, string area, object? additionalRouteVals = null)
    Parameters
    Type Name Description
    IDataProtectionProvider dataProtectionProvider
    string controllerName
    string controllerAction
    string area
    object additionalRouteVals
    Returns
    Type Description
    string
    View Source

    Decrypt(string, IDataProtectionProvider)

    Declaration
    public static string Decrypt(string encryptedString, IDataProtectionProvider dataProtectionProvider)
    Parameters
    Type Name Description
    string encryptedString
    IDataProtectionProvider dataProtectionProvider
    Returns
    Type Description
    string
    View Source

    DecryptAndValidateEncryptedRouteString(IDataProtectionProvider, string, out IDictionary<string, string?>)

    Declaration
    public static bool DecryptAndValidateEncryptedRouteString(IDataProtectionProvider dataProtectionProvider, string encryptedString, out IDictionary<string, string?> parts)
    Parameters
    Type Name Description
    IDataProtectionProvider dataProtectionProvider
    string encryptedString
    IDictionary<string, string> parts
    Returns
    Type Description
    bool
    View Source

    Encrypt(string, IDataProtectionProvider)

    Declaration
    public static string Encrypt(string plainString, IDataProtectionProvider dataProtectionProvider)
    Parameters
    Type Name Description
    string plainString
    IDataProtectionProvider dataProtectionProvider
    Returns
    Type Description
    string
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX