Click or drag to resize
weroSoft AG, Software
SimpleCryptoProvider Class
The documentation is integral part of the weroSoft product documentation. This part is intended to be used by developers only.
Implements the encryption and decryption for different standard types.
Inheritance Hierarchy
SystemObject
  WeroSoft.SecuritySimpleCryptoProvider

Namespace:  WeroSoft.Security
Assembly:  WeroSoft.Core.Library (in WeroSoft.Core.Library.dll) Version: 3.0 Pre-Release
Syntax
C#
public sealed class SimpleCryptoProvider : IValueDecryption, 
	IValueEncryption
Remarks
If you want decrypt a string which was encrypted with an instance of this provider, use this provider to decrypt. Otherwise do not decrypt a string which was encrypted by another cryptographic mechanism.

The SimpleCryptoProvider type exposes the following members.

Constructors
  NameDescription
Public methodSimpleCryptoProvider
Initialize a new instance of type ServerClientValueCrypto.
Top
Properties
  NameDescription
Public propertyGetDecryption
Gets the function to get a decryption instance.
Public propertyGetEncryption
Gets the function to get a encryption instance.
Top
Methods
  NameDescription
Public methodStatic memberCheckTypeIsSupported
Check if a type is supported or not. Throws a NotSupportedException if not supported.
Public methodDecrypt(String, ListCertificate)
Decrypt a value of type System.String.
Public methodDecryptT(String)
Decrypt a encrypted value.
Public methodDecryptBool
Decrypt a value of type System.Boolean.
Public methodDecryptByte
Decrypt a value of type System.Byte.
Public methodDecryptChar
Decrypt a value of type System.Char.
Public methodDecryptDateTime
Decrypt a value of type System.DateTime.
Public methodDecryptDecimal
Decrypt a value of type System.Decimal.
Public methodDecryptDouble
Decrypt a value of type System.Double.
Public methodDecryptEnumT
Decrypt a value of an enumeration type.
Public methodDecryptGuid
Decrypt a value of type System.Guid.
Public methodDecryptInt16
Decrypt a value of type System.Int16.
Public methodDecryptInt32
Decrypt a value of type System.Int32.
Public methodDecryptInt64
Decrypt a value of type System.Int64.
Public methodDecryptSingle
Decrypt a value of type System.Single.
Public methodDecryptString
Decrypt a value of type System.String.
Public methodDecryptTimeSpan
Decrypt a value of type System.TimeSpan.
Public methodDecryptUInt16
Decrypt a value of type System.UInt16.
Public methodDecryptUInt32
Decrypt a value of type System.UInt32.
Public methodDecryptUInt64
Decrypt a value of type System.UInt64.
Public methodEncrypt(Boolean)
Encrypt a value of type System.Boolean.
Public methodEncrypt(Byte)
Encrypt a value of type System.Byte.
Public methodEncrypt(Char)
Encrypt a value of type System.Char.
Public methodEncrypt(DateTime)
Encrypt a value of type System.DateTime.
Public methodEncrypt(Decimal)
Encrypt a value of type System.Decimal.
Public methodEncrypt(Double)
Encrypt a value of type System.Double.
Public methodEncrypt(Enum)
Encrypt a value of an enumeration type.
Public methodEncrypt(Guid)
Encrypt a value of type System.Guid.
Public methodEncrypt(Int16)
Encrypt a value of type System.Int16.
Public methodEncrypt(Int32)
Encrypt a value of type System.Int32.
Public methodEncrypt(Int64)
Encrypt a value of type System.Int64.
Public methodEncrypt(Single)
Encrypt a value of type System.Single.
Public methodEncrypt(String)
Encrypt a value of type System.String.
Public methodEncrypt(TimeSpan)
Encrypt a value of type System.TimeSpan.
Public methodEncrypt(UInt16)
Encrypt a value of type System.UInt16.
Public methodEncrypt(UInt32)
Encrypt a value of type System.UInt32.
Public methodEncrypt(UInt64)
Encrypt a value of type System.UInt64.
Public methodEncrypt(String, ListCertificate)
Encrypt a value of type System.String.
Public methodEncryptT(T)
Encrypt a value generic.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodStatic memberGetSupportedTypeFullNames
Get supported type full names.
Public methodStatic memberGetSupportedTypeNames
Get supported type names.
Public methodStatic memberGetSupportedTypes
Get supported types.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodStatic memberTryCheckTypeIsSupported
Check if a type is supported or not.
Top
Extension Methods
  NameDescription
Public Extension MethodClone(CloneWorkingMode, IEnumerableType)Overloaded.
Clones an object by serialization.
(Defined by RuntimeExtensions.)
Public Extension MethodCloneT(CloneWorkingMode, IEnumerableType)Overloaded.
Clones an object by serialization.
(Defined by RuntimeExtensions.)
Public Extension MethodConvert (Defined by DataConverterExtensions.)
Public Extension MethodCreateTraceDataEntry(StringBuilder, SourceLevels, TraceableKind, String)Overloaded.
Creates a data entry into a string builder according to the giving parameters.
(Defined by TraceExtensions.)
Public Extension MethodCreateTraceDataEntry(SourceLevels, TraceableKind, String, String, Int32)Overloaded.
Creates a trace entry for a data element.
(Defined by TraceExtensions.)
Public Extension MethodCreateTraceDataEntry(StringBuilder, SourceLevels, TraceableKind, String, String, Int32)Overloaded.
Creates a trace entry into a string builder.
(Defined by TraceExtensions.)
Public Extension MethodDynamicCast
Dynamically casts a reference to another type.
(Defined by TypeManagerHelper.)
Public Extension MethodExtractSystemParametersFromTrigger
Extracts the system parameters from a collection of trigger parameter and transform them to a dictionary using string keys and string values.
(Defined by TriggerExtensions.)
Public Extension MethodGetFieldValue(String)Overloaded.
Gets the data object held by a defined field of a particular type.
(Defined by UnitTest.)
Public Extension MethodGetFieldValueT(String)Overloaded.
Gets the data object held by a defined field of a particular type.
(Defined by UnitTest.)
Public Extension MethodGetPropertyValue(String)Overloaded.
Gets the data object held by a defined property of a particular type.
(Defined by UnitTest.)
Public Extension MethodGetPropertyValueT(String)Overloaded.
Gets the data object held by a defined property of a particular type.
(Defined by UnitTest.)
Public Extension MethodInject(Type, Object)Overloaded.
Injects all fields or properties which are marked with the defined attribute type name.
(Defined by DataInjection.)
Public Extension MethodInject(Type, Object, Boolean)Overloaded.
Injects all fields or properties which are marked with the defined attribute type name.
(Defined by DataInjection.)
Public Extension MethodInjectField
Injects a value to a property within a data object.
(Defined by DataInjection.)
Public Extension MethodInjectProperty(String, Object)Overloaded.
Injects a value to a property within a data object.
(Defined by DataInjection.)
Public Extension MethodInjectProperty(String, Type, Object)Overloaded.
Injects a value to a property within a data object.
(Defined by DataInjection.)
Public Extension MethodInvoke(String, Object)Overloaded.
Invokes a method on an object by reflection.
(Defined by UnitTest.)
Public Extension MethodInvokeTResult(String, Object)Overloaded.
Invokes a method on an object by reflection.
(Defined by UnitTest.)
Public Extension MethodSetFieldValue
Sets the data object on a defined field of a particular type.
(Defined by UnitTest.)
Public Extension MethodSetPropertyValue
Sets the data object on a defined property of a particular type.
(Defined by UnitTest.)
Public Extension MethodSetReadOnlyFieldValue
Sets the data object on a defined field of a particular type.
(Defined by UnitTest.)
Public Extension MethodTryInjectProperty
Tries to Inject a value to a property within a data object.
(Defined by DataInjection.)
Top
See Also