Click or drag to resize
weroSoft AG, Software
CryptoServiceBase Klasse
The documentation is integral part of the weroSoft product documentation. This part is intended to be used by developers only.
Base class for the WeroSoft encryption and decryption of data.
Vererbungshierarchie

Namensraum:  WeroSoft.Security
Assembly:  WeroSoft.Core.Library (in WeroSoft.Core.Library.dll) Version: 2.1 Development Main
Syntax
C#
public abstract class CryptoServiceBase : IDisposable
Anmerkungen
The class allows to use the different cryptographic algorithm below:
  • Aes (symmetric)
  • DES (symmetric)
  • RC2 (symmetric)
  • Rijndael (symmetric)
  • TripleDES (symmetric)
  • DSA (asymmetric)
  • RSA (asymmetric)
  • X509 (certificate)

Der CryptoServiceBase Typ exponiert die folgenden Member.

Konstruktoren
  NameBeschreibung
Protected MethodeCryptoServiceBase
Initializes a new instance of the type CryptoServiceBase.
Zurück nach oben
Eigenschaften
  NameBeschreibung
Protected EigenschaftAsymmetricCryptoProvider
Gets the asymmetric cryptographic provider actually used.
Public EigenschaftCryptoProviderType
Gets the cryptographic service provider actually used.
Protected EigenschaftDisposed
Gets a value indicates whether the class has already been disposed or not.
Public EigenschaftIsSymmetric
Gets a value indicating whether the cryptography is working symmetrically or asymmetrically.
Public EigenschaftKeyMode
Gets the key mode actually used.
Protected EigenschaftSymmetricCryptoProvider
Gets the symmetric cryptographic provider actually used.
Protected EigenschaftTransformer
Gets the transformer actually used.
Public EigenschaftUsedKeySize
Gets the key size in Bit actually used.
Protected EigenschaftWorkingCryptoStream
Gets the cryptographic stream actually used.
Protected EigenschaftWorkingIOStream
Gets the working output stream actually used.
Protected EigenschaftWorkingStream
Gets the working stream actually used.
Zurück nach oben
Methoden
  NameBeschreibung
Public MethodeStatic MemberCreateKey(CryptoProviderType, CryptoKeyMode, String)
Creates a key which is used for asymmetric working cryptographic algorithm.
Public MethodeStatic MemberCreateKey(CryptoProviderType, CryptoKeyMode, CryptoKeyStore, String)
Creates a key which is used for asymmetric working cryptographic algorithm.
Protected MethodeStatic MemberCreateKey(String, Byte, Int32, Byte, Int32)
Creates a key which is used for symmetric algorithm.
Public MethodeStatic MemberDeleteKey(String, CryptoProviderType)
Deletes an asymmetric key from the key container.
Public MethodeStatic MemberDeleteKey(String, CryptoKeyStore, CryptoProviderType)
Deletes an asymmetric key from the key container.
Public MethodeDispose
Disposes the object.
Protected MethodeDispose(Boolean)
Disposes the object in the hierarchy of classes.
Public MethodeEquals
Determines whether the specified object is equal to the current object.
(Vererbt von Object.)
Public MethodeStatic MemberExportKey(String, String, Boolean)
Exports an RSA key as encrypted string.
Public MethodeStatic MemberExportKey(String, CryptoKeyStore, String, Boolean)
Exports an RSA key as encrypted string.
Public MethodeStatic MemberExportKey(String, String, String, Boolean, CryptoProviderType)
Exports an asymmetric key to a file.
Public MethodeStatic MemberExportKey(String, CryptoKeyStore, String, String, Boolean, CryptoProviderType)
Exports an asymmetric key to a file.
Public MethodeStatic MemberExportPublicKey(String, CryptoProviderType)
Exports the public key part in a XML formatted string.
Public MethodeStatic MemberExportPublicKey(String, CryptoKeyStore, CryptoProviderType)
Exports the public key part in a XML formatted string.
Protected MethodeFinalize
Finalizes the object if it was not properly disposed before.
(Überschreibt ObjectFinalize.)
Public MethodeStatic MemberGenerateCode
Creates a secure code for accessing the store.
Public MethodeGetCryptoStream
Gets the configured cryptographic stream.
Public MethodeGetHashCode
Serves as the default hash function.
(Vererbt von Object.)
Public MethodeStatic MemberGetKey(String, CryptoProviderType)
Gets the key from key store.
Public MethodeStatic MemberGetKey(String, CryptoKeyStore, CryptoProviderType)
Gets the key from key store.
Public MethodeGetType
Gets the Type of the current instance.
(Vererbt von Object.)
Public MethodeStatic MemberImportKey(String, String, String, CryptoProviderType)
Imports an asymmetric key file to the cryptographic key container.
Public MethodeStatic MemberImportKey(String, String, CryptoKeyStore, String, CryptoProviderType)
Imports an asymmetric key file to the cryptographic key container.
Public MethodeStatic MemberImportKeyFromString(String, String, String, CryptoProviderType)
Imports a key from a encrypted string.
Public MethodeStatic MemberImportKeyFromString(String, String, CryptoKeyStore, String, CryptoProviderType)
Imports a key from a encrypted string.
Public MethodeInitialize(String)
Public MethodeInitialize(String, CryptoKeyStore)
Protected MethodeInitializeCryptography
Protected MethodeInitializeInternal
Initializes the base elements of the cryptographic object.
Public MethodeStatic MemberIsKeyExisting(String)
Gets a value indicating whether a key is existing or not.
Public MethodeStatic MemberIsKeyExisting(String, CryptoKeyStore)
Gets a value indicating whether a key is existing or not.
Protected MethodeMemberwiseClone
Creates a shallow copy of the current Object.
(Vererbt von Object.)
Public MethodeStatic MemberSecureHash
Hashes plan text and create a base 64 representation of it.
Public MethodeToString
Returns a string that represents the current object.
(Vererbt von Object.)
Zurück nach oben
Felder
  NameBeschreibung
Protected FeldInitVector
Gets or sets the initiation vector.
Protected FeldKey
Gets or sets the key.
Zurück nach oben
Erweiterungsmethoden
  NameBeschreibung
Public ErweiterungsmethodeClone(CloneWorkingMode, IEnumerableType)Überladen.
Clones an object by serialization.
(Definiert von RuntimeExtensions.)
Public ErweiterungsmethodeCloneT(CloneWorkingMode, IEnumerableType)Überladen.
Clones an object by serialization.
(Definiert von RuntimeExtensions.)
Public ErweiterungsmethodeConvert (Definiert von DataConverterExtensions.)
Public ErweiterungsmethodeDynamicCast
Dynamically casts a reference to another type.
(Definiert von TypeManagerHelper.)
Public ErweiterungsmethodeExtractSystemParametersFromTrigger
Extracts the system parameters from a collection of trigger parameter and transform them to a dictionary using string keys and string values.
(Definiert von TriggerExtensions.)
Public ErweiterungsmethodeGetFieldValue(String)Überladen.
Gets the data object held by a defined field of a particular type.
(Definiert von UnitTest.)
Public ErweiterungsmethodeGetFieldValueT(String)Überladen.
Gets the data object held by a defined field of a particular type.
(Definiert von UnitTest.)
Public ErweiterungsmethodeGetPropertyValue(String)Überladen.
Gets the data object held by a defined property of a particular type.
(Definiert von UnitTest.)
Public ErweiterungsmethodeGetPropertyValueT(String)Überladen.
Gets the data object held by a defined property of a particular type.
(Definiert von UnitTest.)
Public ErweiterungsmethodeInject(Type, Object)Überladen.
Injects all fields or properties which are marked with the defined attribute type name.
(Definiert von DataInjection.)
Public ErweiterungsmethodeInject(Type, Object, Boolean)Überladen.
Injects all fields or properties which are marked with the defined attribute type name.
(Definiert von DataInjection.)
Public ErweiterungsmethodeInjectField
Injects a value to a property within a data object.
(Definiert von DataInjection.)
Public ErweiterungsmethodeInjectProperty(String, Object)Überladen.
Injects a value to a property within a data object.
(Definiert von DataInjection.)
Public ErweiterungsmethodeInjectProperty(String, Type, Object)Überladen.
Injects a value to a property within a data object.
(Definiert von DataInjection.)
Public ErweiterungsmethodeInvoke(String, Object)Überladen.
Invokes a method on an object by reflection.
(Definiert von UnitTest.)
Public ErweiterungsmethodeInvokeTResult(String, Object)Überladen.
Invokes a method on an object by reflection.
(Definiert von UnitTest.)
Public ErweiterungsmethodeSetFieldValue
Sets the data object on a defined field of a particular type.
(Definiert von UnitTest.)
Public ErweiterungsmethodeSetPropertyValue
Sets the data object on a defined property of a particular type.
(Definiert von UnitTest.)
Public ErweiterungsmethodeSetReadOnlyFieldValue
Sets the data object on a defined field of a particular type.
(Definiert von UnitTest.)
Public ErweiterungsmethodeTryInjectProperty
Tries to Inject a value to a property within a data object.
(Definiert von DataInjection.)
Zurück nach oben
Siehe auch