Show / Hide Table of Contents

    Class SecureXmlObfuscator

    Provides methods for secure obfuscation (based on AES) of the otherwise similar class XmlObfuscator.

    Inheritance
    System.Object
    Obfuscator
    XmlObfuscator
    SecureXmlObfuscator
    Inherited Members
    XmlObfuscator.InitializePermutationCharacters()
    XmlObfuscator.Obfuscate(Stream)
    Obfuscator.CurrentCombinationLength
    Obfuscator.CurrentPermutationSize
    Obfuscator.Encoding
    Obfuscator.PermutationCharacters
    Obfuscator.Exclusions
    Obfuscator.Mappings
    Obfuscator.ComputeHash(String)
    Obfuscator.GenerateObfuscatedValue()
    Namespace: Cuemon.Security
    Assembly: Cuemon.Xml.dll
    Syntax
    public sealed class SecureXmlObfuscator : XmlObfuscator
    Remarks

    Logic used from the AdvancedEncryptionStandardUtility class.

    Constructors

    | Improve this Doc

    SecureXmlObfuscator(Byte[], Byte[])

    Initializes a new instance of the SecureXmlObfuscator class using System.Text.Encoding.UTF8 for the text encoding.

    Declaration
    public SecureXmlObfuscator(byte[] key, byte[] initializationVector)
    Parameters
    Type Name Description
    System.Byte[] key

    The key to use in the encryption algorithm.

    System.Byte[] initializationVector

    The initialization vector (IV) to use in the encryption algorithm.

    | Improve this Doc

    SecureXmlObfuscator(Byte[], Byte[], IEnumerable<String>)

    Initializes a new instance of the SecureXmlObfuscator class.

    Declaration
    public SecureXmlObfuscator(byte[] key, byte[] initializationVector, IEnumerable<string> exclusions)
    Parameters
    Type Name Description
    System.Byte[] key

    The key to use in the encryption algorithm.

    System.Byte[] initializationVector

    The initialization vector (IV) to use in the encryption algorithm.

    System.Collections.Generic.IEnumerable<System.String> exclusions

    A sequence of System.String values used for excluding matching original values in the obfuscation process.

    | Improve this Doc

    SecureXmlObfuscator(Byte[], Byte[], Encoding)

    Initializes a new instance of the SecureXmlObfuscator class using System.Text.Encoding.UTF8 for the text encoding.

    Declaration
    public SecureXmlObfuscator(byte[] key, byte[] initializationVector, Encoding encoding)
    Parameters
    Type Name Description
    System.Byte[] key

    The key to use in the encryption algorithm.

    System.Byte[] initializationVector

    The initialization vector (IV) to use in the encryption algorithm.

    System.Text.Encoding encoding

    The text encoding to use.

    | Improve this Doc

    SecureXmlObfuscator(Byte[], Byte[], Encoding, IEnumerable<String>)

    Initializes a new instance of the SecureXmlObfuscator class.

    Declaration
    public SecureXmlObfuscator(byte[] key, byte[] initializationVector, Encoding encoding, IEnumerable<string> exclusions)
    Parameters
    Type Name Description
    System.Byte[] key

    The key to use in the encryption algorithm.

    System.Byte[] initializationVector

    The initialization vector (IV) to use in the encryption algorithm.

    System.Text.Encoding encoding

    The character encoding to use.

    System.Collections.Generic.IEnumerable<System.String> exclusions

    A sequence of System.String values used for excluding matching original values in the obfuscation process.

    Properties

    | Improve this Doc

    InitializationVector

    Gets the initialization vector (IV) for the AES algorithm.

    Declaration
    public byte[] InitializationVector { get; }
    Property Value
    Type Description
    System.Byte[]
    | Improve this Doc

    Key

    Gets the secret key for the AES algorithm.

    Declaration
    public byte[] Key { get; }
    Property Value
    Type Description
    System.Byte[]

    Methods

    | Improve this Doc

    CreateMapping()

    Creates and returns a mappable XML document of the original values and the obfuscated values.

    Declaration
    public override Stream CreateMapping()
    Returns
    Type Description
    System.IO.Stream

    A mappable XML document of the original values and the obfuscated values.

    Overrides
    XmlObfuscator.CreateMapping()
    | Improve this Doc

    Revert(Stream, Stream)

    Revert the obfuscated XML document of value to its original state by applying the mappable XML document of mapping.

    Declaration
    public override Stream Revert(Stream value, Stream mapping)
    Parameters
    Type Name Description
    System.IO.Stream value

    The obfuscated System.IO.Stream to revert.

    System.IO.Stream mapping

    A System.IO.Stream containing mappable values necessary to revert value to its original state.

    Returns
    Type Description
    System.IO.Stream

    A System.IO.Stream object where the obfuscated XML document has been reverted to its original XML document.

    Overrides
    XmlObfuscator.Revert(Stream, Stream)

    Extension Methods

    ConverterExtensions.ParseWith<TSource, TResult>(TSource, Func<TSource, TResult>)
    ConverterExtensions.ParseWith<TSource, T, TResult>(TSource, Func<TSource, T, TResult>, T)
    ConverterExtensions.ParseWith<TSource, T1, T2, TResult>(TSource, Func<TSource, T1, T2, TResult>, T1, T2)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, TResult>(TSource, Func<TSource, T1, T2, T3, TResult>, T1, T2, T3)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, TResult>(TSource, Func<TSource, T1, T2, T3, T4, TResult>, T1, T2, T3, T4)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
    ConverterExtensions.As<TResult>(Object)
    ConverterExtensions.As<TResult>(Object, TResult)
    ConverterExtensions.As<TResult>(Object, TResult, IFormatProvider)
    DelegateUtilityExtensions.Wrap<TResult>(TResult)
    DelegateUtilityExtensions.DynamicWrap<TResult>(TResult)
    TweakerExtensions.Adjust<T>(T, Func<T, T>)
    TypeUtilityExtensions.Is<T>(Object)
    TypeUtilityExtensions.IsNot<T>(Object)
    TypeUtilityExtensions.IsNullable<T>(T)
    WrapperExtensions.UseWrapper<T>(T, Action<IDictionary<String, Object>>)
    WrapperExtensions.UseWrapper<T>(T, MemberInfo, Action<IDictionary<String, Object>>)
    EnumerableUtilityExtensions.Yield<TSource>(TSource)
    HashUtilityExtensions.ComputeHash(Object, Action<HashOptions>)
    HmacUtilityExtensions.ComputeKeyedHash(Object, Byte[], Action<KeyedHashOptions>)
    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX