DESCryptoServiceProviderとは? わかりやすく解説

DESCryptoServiceProvider クラス

DES (Data Encryption Standard) アルゴリズム暗号サービス プロバイダ (CSP : Cryptographic Service Provider) バージョンアクセスする、ラッパー オブジェクト定義します。このクラス継承できません。

名前空間: System.Security.Cryptography
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

<ComVisibleAttribute(True)> _
Public NotInheritable Class
 DESCryptoServiceProvider
    Inherits DES
Dim instance As DESCryptoServiceProvider
[ComVisibleAttribute(true)] 
public sealed class DESCryptoServiceProvider
 : DES
[ComVisibleAttribute(true)] 
public ref class DESCryptoServiceProvider sealed
 : public DES
/** @attribute ComVisibleAttribute(true) */ 
public final class DESCryptoServiceProvider
 extends DES
ComVisibleAttribute(true) 
public final class DESCryptoServiceProvider
 extends DES
解説解説
使用例使用例

次に示す例では、DESCryptoServiceProvider クラス使用してデータ暗号化した後、そのデータ復号化ます。

' This sample demonstrates using a key based on the cryptographic service
 provider (CSP) version
' of the Data Encryption Standard (DES)algorithm to encrypt a string
 to a byte array, and then 
' to decrypt the byte array back to a string.
Imports System
Imports System.IO
Imports System.Text
Imports System.Security.Cryptography



Class CryptoMemoryStream
    
    ' Main method.
    Public Shared Sub Main()
        ' Create a new DES key.
        Dim key As New DESCryptoServiceProvider()
        
        ' Encrypt a string to a byte array.
        Dim buffer As Byte()
 = Encrypt("This is some plaintext!", key)
        
        ' Decrypt the byte array back to a string.
        Dim plaintext As String
 = Decrypt(buffer, key)
        
        ' Display the plaintext value to the console.
        Console.WriteLine(plaintext)
    End Sub 'Main
    
    
    ' Encrypt the string.
    Public Shared Function
 Encrypt(PlainText As String, key As
 SymmetricAlgorithm) As Byte()
        ' Create a memory stream.
        Dim ms As New MemoryStream()
        
        ' Create a CryptoStream using the memory stream and the 
        ' CSP DES key.  
        Dim encStream As New
 CryptoStream(ms, key.CreateEncryptor(), CryptoStreamMode.Write)
        
        ' Create a StreamWriter to write a string
        ' to the stream.
        Dim sw As New StreamWriter(encStream)
        
        ' Write the plaintext to the stream.
        sw.WriteLine(PlainText)
        
        ' Close the StreamWriter and CryptoStream.
        sw.Close()
        encStream.Close()
        
        ' Get an array of bytes that represents
        ' the memory stream.
        Dim buffer As Byte()
 = ms.ToArray()
        
        ' Close the memory stream.
        ms.Close()
        
        ' Return the encrypted byte array.
        Return buffer
    End Function 'Encrypt
    
    
    ' Decrypt the byte array.
    Public Shared Function
 Decrypt(CypherText() As Byte, key As
 SymmetricAlgorithm) As String
        ' Create a memory stream to the passed buffer.
        Dim ms As New MemoryStream(CypherText)
        
        ' Create a CryptoStream using the memory stream and the 
        ' CSP DES key. 
        Dim encStream As New
 CryptoStream(ms, key.CreateDecryptor(), CryptoStreamMode.Read)
        
        ' Create a StreamReader for reading the stream.
        Dim sr As New StreamReader(encStream)
        
        ' Read the stream as a string.
        Dim val As String
 = sr.ReadLine()
        
        ' Close the streams.
        sr.Close()
        encStream.Close()
        ms.Close()
        
        Return val
    End Function 'Decrypt
End Class 'CryptoMemoryStream
// This sample demonstrates using a key based on the cryptographic service
 provider (CSP) version
// of the Data Encryption Standard (DES)algorithm to encrypt a string
 to a byte array, and then 
// to decrypt the byte array back to a string.

using System;
using System.IO;
using System.Text;
using System.Security.Cryptography;

class CryptoMemoryStream
{
    // Main method.
    public static void Main()
    {
        // Create a new DES key.
        DESCryptoServiceProvider key = new DESCryptoServiceProvider();

        // Encrypt a string to a byte array.
        byte[] buffer = Encrypt("This is some plaintext!", key);

        // Decrypt the byte array back to a string.
        string plaintext =  Decrypt(buffer, key);

        // Display the plaintext value to the console.
        Console.WriteLine(plaintext);
    }
    
    // Encrypt the string.
    public static byte[] Encrypt(string
 PlainText, SymmetricAlgorithm key)
    {
        // Create a memory stream.
        MemoryStream ms = new MemoryStream();

        // Create a CryptoStream using the memory stream and the 
        // CSP DES key.  
        CryptoStream encStream = new CryptoStream(ms, key.CreateEncryptor(),
 CryptoStreamMode.Write);

        // Create a StreamWriter to write a string
        // to the stream.
        StreamWriter sw = new StreamWriter(encStream);

        // Write the plaintext to the stream.
        sw.WriteLine(PlainText);

        // Close the StreamWriter and CryptoStream.
        sw.Close();
        encStream.Close();

        // Get an array of bytes that represents
        // the memory stream.
        byte[] buffer = ms.ToArray();

        // Close the memory stream.
        ms.Close();

        // Return the encrypted byte array.
        return buffer;
    }

   // Decrypt the byte array.
    public static string
 Decrypt(byte[] CypherText, SymmetricAlgorithm key)
    {
        // Create a memory stream to the passed buffer.
        MemoryStream ms = new MemoryStream(CypherText);

        // Create a CryptoStream using the memory stream and the 
        // CSP DES key. 
        CryptoStream encStream = new CryptoStream(ms, key.CreateDecryptor(),
 CryptoStreamMode.Read);

        // Create a StreamReader for reading the stream.
        StreamReader sr = new StreamReader(encStream);

        // Read the stream as a string.
        string val = sr.ReadLine();

        // Close the streams.
        sr.Close();
        encStream.Close();
        ms.Close();
            
        return val;
    }
}
// This sample demonstrates using a key based on the cryptographic service
 provider (CSP) version
// of the Data Encryption Standard (DES)algorithm to encrypt a string
 to a byte array, and then 
// to decrypt the byte array back to a string.
using namespace System;
using namespace System::IO;
using namespace System::Text;
using namespace System::Security::Cryptography;

// Encrypt the string.
array<Byte>^ Encrypt( String^ PlainText, SymmetricAlgorithm^ key )
{
   
   // Create a memory stream.
   MemoryStream^ ms = gcnew MemoryStream;
   
   // Create a CryptoStream using the memory stream and the 
   // CSP DES key.  
   CryptoStream^ encStream = gcnew CryptoStream( ms,key->CreateEncryptor(),CryptoStreamMode::Write
 );
   
   // Create a StreamWriter to write a string
   // to the stream.
   StreamWriter^ sw = gcnew StreamWriter( encStream );
   
   // Write the plaintext to the stream.
   sw->WriteLine( PlainText );
   
   // Close the StreamWriter and CryptoStream.
   sw->Close();
   encStream->Close();
   
   // Get an array of bytes that represents
   // the memory stream.
   array<Byte>^buffer = ms->ToArray();
   
   // Close the memory stream.
   ms->Close();
   
   // Return the encrypted byte array.
   return buffer;
}


// Decrypt the byte array.
String^ Decrypt( array<Byte>^CypherText, SymmetricAlgorithm^ key )
{
   
   // Create a memory stream to the passed buffer.
   MemoryStream^ ms = gcnew MemoryStream( CypherText );
   
   // Create a CryptoStream using the memory stream and the 
   // CSP DES key. 
   CryptoStream^ encStream = gcnew CryptoStream( ms,key->CreateDecryptor(),CryptoStreamMode::Read
 );
   
   // Create a StreamReader for reading the stream.
   StreamReader^ sr = gcnew StreamReader( encStream );
   
   // Read the stream as a string.
   String^ val = sr->ReadLine();
   
   // Close the streams.
   sr->Close();
   encStream->Close();
   ms->Close();
   return val;
}

int main()
{
   
   // Create a new DES key.
   DESCryptoServiceProvider^ key = gcnew DESCryptoServiceProvider;
   
   // Encrypt a string to a byte array.
   array<Byte>^buffer = Encrypt( "This is some plaintext!", key );
   
   // Decrypt the byte array back to a string.
   String^ plaintext = Decrypt( buffer, key );
   
   // Display the plaintext value to the console.
   Console::WriteLine( plaintext );
}

// This sample demonstrates using a key based on the cryptographic 
// service provider (CSP) version
// of the Data Encryption Standard (DES)algorithm to encrypt a string
 
// to a byte array, and then to decrypt the byte array back to a string.

import System.*;
import System.IO.*;
import System.Text.*;
import System.Security.Cryptography.*;

class CryptoMemoryStream
{
    // main method.
    public static void main(String[]
 args)
    {
        // Create a new DES key.
        DESCryptoServiceProvider key = new DESCryptoServiceProvider();

        // Encrypt a string to a byte array.
        ubyte buffer[] = Encrypt("This is some plaintext!", key);

        // Decrypt the byte array back to a string.
        String plainText = Decrypt(buffer, key);

        // Display the plaintext value to the console.
        Console.WriteLine(plainText);
    } //main

    // Encrypt the string.
    public static ubyte[] Encrypt(String plainText,
 SymmetricAlgorithm key)
    {
        // Create a memory stream.
        MemoryStream ms = new MemoryStream();

        // Create a CryptoStream using the memory stream and the 
        // CSP DES key.  
        CryptoStream encStream = new CryptoStream(ms, key.CreateEncryptor(),
 
            CryptoStreamMode.Write);

        // Create a StreamWriter to write a string
        // to the stream.
        StreamWriter sw = new StreamWriter(encStream);

        // Write the plaintext to the stream.
        sw.WriteLine(plainText);

        // Close the StreamWriter and CryptoStream.
        sw.Close();
        encStream.Close();

        // Get an array of bytes that represents
        // the memory stream.
        ubyte buffer[] = ms.ToArray();

        // Close the memory stream.
        ms.Close();

        // Return the encrypted byte array.
        return buffer;
    } //Encrypt

    // Decrypt the byte array.
    public static String Decrypt(ubyte cypherText[],
 SymmetricAlgorithm key)
    {
        // Create a memory stream to the passed buffer.
        MemoryStream ms = new MemoryStream(cypherText);

        // Create a CryptoStream using the memory stream and the 
        // CSP DES key. 
        CryptoStream encStream = new CryptoStream(ms, key.CreateDecryptor(),
 
            CryptoStreamMode.Read);

        // Create a StreamReader for reading the stream.
        StreamReader sr = new StreamReader(encStream);

        // Read the stream as a string.
        String val = sr.ReadLine();

        // Close the streams.
        sr.Close();
        encStream.Close();
        ms.Close();
        return val;
    } //Decrypt
} //CryptoMemoryStream
継承階層継承階層
System.Object
   System.Security.Cryptography.SymmetricAlgorithm
     System.Security.Cryptography.DES
      System.Security.Cryptography.DESCryptoServiceProvider
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DESCryptoServiceProvider メンバ
System.Security.Cryptography 名前空間
その他の技術情報
暗号サービス

DESCryptoServiceProvider コンストラクタ

DESCryptoServiceProvider クラス新しインスタンス初期化します。

名前空間: System.Security.Cryptography
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Dim instance As New DESCryptoServiceProvider
public DESCryptoServiceProvider ()
public:
DESCryptoServiceProvider ()
public DESCryptoServiceProvider ()
public function DESCryptoServiceProvider ()
例外例外
使用例使用例

次に示す例では、DESCryptoServiceProvider クラス使用してデータ暗号化した後、そのデータ復号化ます。

' This sample demonstrates using a key based on the cryptographic service
 provider (CSP) version
' of the Data Encryption Standard (DES)algorithm to encrypt a string
 to a byte array, and then 
' to decrypt the byte array back to a string.
Imports System
Imports System.IO
Imports System.Text
Imports System.Security.Cryptography



Class CryptoMemoryStream
    
    ' Main method.
    Public Shared Sub Main()
        ' Create a new DES key.
        Dim key As New DESCryptoServiceProvider()
        
        ' Encrypt a string to a byte array.
        Dim buffer As Byte()
 = Encrypt("This is some plaintext!", key)
        
        ' Decrypt the byte array back to a string.
        Dim plaintext As String
 = Decrypt(buffer, key)
        
        ' Display the plaintext value to the console.
        Console.WriteLine(plaintext)
    End Sub 'Main
    
    
    ' Encrypt the string.
    Public Shared Function
 Encrypt(PlainText As String, key As
 SymmetricAlgorithm) As Byte()
        ' Create a memory stream.
        Dim ms As New MemoryStream()
        
        ' Create a CryptoStream using the memory stream and the 
        ' CSP DES key.  
        Dim encStream As New
 CryptoStream(ms, key.CreateEncryptor(), CryptoStreamMode.Write)
        
        ' Create a StreamWriter to write a string
        ' to the stream.
        Dim sw As New StreamWriter(encStream)
        
        ' Write the plaintext to the stream.
        sw.WriteLine(PlainText)
        
        ' Close the StreamWriter and CryptoStream.
        sw.Close()
        encStream.Close()
        
        ' Get an array of bytes that represents
        ' the memory stream.
        Dim buffer As Byte()
 = ms.ToArray()
        
        ' Close the memory stream.
        ms.Close()
        
        ' Return the encrypted byte array.
        Return buffer
    End Function 'Encrypt
    
    
    ' Decrypt the byte array.
    Public Shared Function
 Decrypt(CypherText() As Byte, key As
 SymmetricAlgorithm) As String
        ' Create a memory stream to the passed buffer.
        Dim ms As New MemoryStream(CypherText)
        
        ' Create a CryptoStream using the memory stream and the 
        ' CSP DES key. 
        Dim encStream As New
 CryptoStream(ms, key.CreateDecryptor(), CryptoStreamMode.Read)
        
        ' Create a StreamReader for reading the stream.
        Dim sr As New StreamReader(encStream)
        
        ' Read the stream as a string.
        Dim val As String
 = sr.ReadLine()
        
        ' Close the streams.
        sr.Close()
        encStream.Close()
        ms.Close()
        
        Return val
    End Function 'Decrypt
End Class 'CryptoMemoryStream
// This sample demonstrates using a key based on the cryptographic service
 provider (CSP) version
// of the Data Encryption Standard (DES)algorithm to encrypt a string
 to a byte array, and then 
// to decrypt the byte array back to a string.

using System;
using System.IO;
using System.Text;
using System.Security.Cryptography;

class CryptoMemoryStream
{
    // Main method.
    public static void Main()
    {
        // Create a new DES key.
        DESCryptoServiceProvider key = new DESCryptoServiceProvider();

        // Encrypt a string to a byte array.
        byte[] buffer = Encrypt("This is some plaintext!", key);

        // Decrypt the byte array back to a string.
        string plaintext =  Decrypt(buffer, key);

        // Display the plaintext value to the console.
        Console.WriteLine(plaintext);
    }
    
    // Encrypt the string.
    public static byte[] Encrypt(string
 PlainText, SymmetricAlgorithm key)
    {
        // Create a memory stream.
        MemoryStream ms = new MemoryStream();

        // Create a CryptoStream using the memory stream and the 
        // CSP DES key.  
        CryptoStream encStream = new CryptoStream(ms, key.CreateEncryptor(),
 CryptoStreamMode.Write);

        // Create a StreamWriter to write a string
        // to the stream.
        StreamWriter sw = new StreamWriter(encStream);

        // Write the plaintext to the stream.
        sw.WriteLine(PlainText);

        // Close the StreamWriter and CryptoStream.
        sw.Close();
        encStream.Close();

        // Get an array of bytes that represents
        // the memory stream.
        byte[] buffer = ms.ToArray();

        // Close the memory stream.
        ms.Close();

        // Return the encrypted byte array.
        return buffer;
    }

   // Decrypt the byte array.
    public static string
 Decrypt(byte[] CypherText, SymmetricAlgorithm key)
    {
        // Create a memory stream to the passed buffer.
        MemoryStream ms = new MemoryStream(CypherText);

        // Create a CryptoStream using the memory stream and the 
        // CSP DES key. 
        CryptoStream encStream = new CryptoStream(ms, key.CreateDecryptor(),
 CryptoStreamMode.Read);

        // Create a StreamReader for reading the stream.
        StreamReader sr = new StreamReader(encStream);

        // Read the stream as a string.
        string val = sr.ReadLine();

        // Close the streams.
        sr.Close();
        encStream.Close();
        ms.Close();
            
        return val;
    }
}
// This sample demonstrates using a key based on the cryptographic service
 provider (CSP) version
// of the Data Encryption Standard (DES)algorithm to encrypt a string
 to a byte array, and then 
// to decrypt the byte array back to a string.
using namespace System;
using namespace System::IO;
using namespace System::Text;
using namespace System::Security::Cryptography;

// Encrypt the string.
array<Byte>^ Encrypt( String^ PlainText, SymmetricAlgorithm^ key )
{
   
   // Create a memory stream.
   MemoryStream^ ms = gcnew MemoryStream;
   
   // Create a CryptoStream using the memory stream and the 
   // CSP DES key.  
   CryptoStream^ encStream = gcnew CryptoStream( ms,key->CreateEncryptor(),CryptoStreamMode::Write
 );
   
   // Create a StreamWriter to write a string
   // to the stream.
   StreamWriter^ sw = gcnew StreamWriter( encStream );
   
   // Write the plaintext to the stream.
   sw->WriteLine( PlainText );
   
   // Close the StreamWriter and CryptoStream.
   sw->Close();
   encStream->Close();
   
   // Get an array of bytes that represents
   // the memory stream.
   array<Byte>^buffer = ms->ToArray();
   
   // Close the memory stream.
   ms->Close();
   
   // Return the encrypted byte array.
   return buffer;
}


// Decrypt the byte array.
String^ Decrypt( array<Byte>^CypherText, SymmetricAlgorithm^ key )
{
   
   // Create a memory stream to the passed buffer.
   MemoryStream^ ms = gcnew MemoryStream( CypherText );
   
   // Create a CryptoStream using the memory stream and the 
   // CSP DES key. 
   CryptoStream^ encStream = gcnew CryptoStream( ms,key->CreateDecryptor(),CryptoStreamMode::Read
 );
   
   // Create a StreamReader for reading the stream.
   StreamReader^ sr = gcnew StreamReader( encStream );
   
   // Read the stream as a string.
   String^ val = sr->ReadLine();
   
   // Close the streams.
   sr->Close();
   encStream->Close();
   ms->Close();
   return val;
}

int main()
{
   
   // Create a new DES key.
   DESCryptoServiceProvider^ key = gcnew DESCryptoServiceProvider;
   
   // Encrypt a string to a byte array.
   array<Byte>^buffer = Encrypt( "This is some plaintext!", key );
   
   // Decrypt the byte array back to a string.
   String^ plaintext = Decrypt( buffer, key );
   
   // Display the plaintext value to the console.
   Console::WriteLine( plaintext );
}

// This sample demonstrates using a key based on the cryptographic 
// service provider (CSP) version
// of the Data Encryption Standard (DES)algorithm to encrypt a string
 
// to a byte array, and then to decrypt the byte array back to a string.

import System.*;
import System.IO.*;
import System.Text.*;
import System.Security.Cryptography.*;

class CryptoMemoryStream
{
    // main method.
    public static void main(String[]
 args)
    {
        // Create a new DES key.
        DESCryptoServiceProvider key = new DESCryptoServiceProvider();

        // Encrypt a string to a byte array.
        ubyte buffer[] = Encrypt("This is some plaintext!", key);

        // Decrypt the byte array back to a string.
        String plainText = Decrypt(buffer, key);

        // Display the plaintext value to the console.
        Console.WriteLine(plainText);
    } //main

    // Encrypt the string.
    public static ubyte[] Encrypt(String plainText,
 SymmetricAlgorithm key)
    {
        // Create a memory stream.
        MemoryStream ms = new MemoryStream();

        // Create a CryptoStream using the memory stream and the 
        // CSP DES key.  
        CryptoStream encStream = new CryptoStream(ms, key.CreateEncryptor(),
 
            CryptoStreamMode.Write);

        // Create a StreamWriter to write a string
        // to the stream.
        StreamWriter sw = new StreamWriter(encStream);

        // Write the plaintext to the stream.
        sw.WriteLine(plainText);

        // Close the StreamWriter and CryptoStream.
        sw.Close();
        encStream.Close();

        // Get an array of bytes that represents
        // the memory stream.
        ubyte buffer[] = ms.ToArray();

        // Close the memory stream.
        ms.Close();

        // Return the encrypted byte array.
        return buffer;
    } //Encrypt

    // Decrypt the byte array.
    public static String Decrypt(ubyte cypherText[],
 SymmetricAlgorithm key)
    {
        // Create a memory stream to the passed buffer.
        MemoryStream ms = new MemoryStream(cypherText);

        // Create a CryptoStream using the memory stream and the 
        // CSP DES key. 
        CryptoStream encStream = new CryptoStream(ms, key.CreateDecryptor(),
 
            CryptoStreamMode.Read);

        // Create a StreamReader for reading the stream.
        StreamReader sr = new StreamReader(encStream);

        // Read the stream as a string.
        String val = sr.ReadLine();

        // Close the streams.
        sr.Close();
        encStream.Close();
        ms.Close();
        return val;
    } //Decrypt
} //CryptoMemoryStream
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DESCryptoServiceProvider クラス
DESCryptoServiceProvider メンバ
System.Security.Cryptography 名前空間
その他の技術情報
暗号サービス

DESCryptoServiceProvider プロパティ


パブリック プロパティパブリック プロパティ

参照参照

関連項目

DESCryptoServiceProvider クラス
System.Security.Cryptography 名前空間

その他の技術情報

暗号サービス

DESCryptoServiceProvider メソッド


パブリック メソッドパブリック メソッド

  名前 説明
パブリック メソッド Clear  SymmetricAlgorithm クラスによって使用されているすべてのリソース解放します。 ( SymmetricAlgorithm から継承されます。)
パブリック メソッド Create  オーバーロードされます暗号オブジェクトインスタンス作成してDES (Data Encryption Standard) アルゴリズム実行します。 ( DES から継承されます。)
パブリック メソッド CreateDecryptor オーバーロードされます対称 DES (Data Encryption Standard) 復号化オブジェクト作成します
パブリック メソッド CreateEncryptor オーバーロードされます対称 DES (Data Encryption Standard) 暗号化オブジェクト作成します
パブリック メソッド Equals  オーバーロードされます2 つObject インスタンス等しかどうか判断します。 ( Object から継承されます。)
パブリック メソッド GenerateIV オーバーライドされますアルゴリズム使用するランダムな初期化ベクタ (IV) を生成します
パブリック メソッド GenerateKey オーバーライドされますアルゴリズム使用するランダム キー (Key) を生成します
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用適してます。 ( Object から継承されます。)
パブリック メソッド GetType  現在のインスタンスType取得します。 ( Object から継承されます。)
パブリック メソッド IsSemiWeakKey  指定したキーが半脆弱かどうか確認します。 ( DES から継承されます。)
パブリック メソッド IsWeakKey  指定したキー脆弱かどうか確認します。 ( DES から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 ( Object から継承されます。)
パブリック メソッド ToString  現在の Object を表す String返します。 ( Object から継承されます。)
パブリック メソッド ValidKeySize  指定されキー サイズが、現在のアルゴリズムに対して有効かどうか判断します。 ( SymmetricAlgorithm から継承されます。)
参照参照

関連項目

DESCryptoServiceProvider クラス
System.Security.Cryptography 名前空間

その他の技術情報

暗号サービス

DESCryptoServiceProvider メンバ

DES (Data Encryption Standard) アルゴリズム暗号サービス プロバイダ (CSP : Cryptographic Service Provider) バージョンアクセスする、ラッパー オブジェクト定義します。このクラス継承できません。

DESCryptoServiceProvider データ型公開されるメンバを以下の表に示します


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド DESCryptoServiceProvider DESCryptoServiceProvider クラス新しインスタンス初期化します。
パブリック プロパティパブリック プロパティ
パブリック メソッドパブリック メソッド
  名前 説明
パブリック メソッド Clear  SymmetricAlgorithm クラスによって使用されているすべてのリソース解放します。 (SymmetricAlgorithm から継承されます。)
パブリック メソッド Create  オーバーロードされます暗号オブジェクトインスタンス作成してDES (Data Encryption Standard) アルゴリズム実行します。 (DES から継承されます。)
パブリック メソッド CreateDecryptor オーバーロードされます対称 DES (Data Encryption Standard) 復号化オブジェクト作成します
パブリック メソッド CreateEncryptor オーバーロードされます対称 DES (Data Encryption Standard) 暗号化オブジェクト作成します
パブリック メソッド Equals  オーバーロードされます2 つObject インスタンス等しかどうか判断します。 (Object から継承されます。)
パブリック メソッド GenerateIV オーバーライドされますアルゴリズム使用するランダムな初期化ベクタ (IV) を生成します
パブリック メソッド GenerateKey オーバーライドされますアルゴリズム使用するランダム キー (Key) を生成します
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用適してます。 (Object から継承されます。)
パブリック メソッド GetType  現在のインスタンスType取得します。 (Object から継承されます。)
パブリック メソッド IsSemiWeakKey  指定したキーが半脆弱かどうか確認します。 (DES から継承されます。)
パブリック メソッド IsWeakKey  指定したキー脆弱かどうか確認します。 (DES から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 (Object から継承されます。)
パブリック メソッド ToString  現在の Object を表す String返します。 (Object から継承されます。)
パブリック メソッド ValidKeySize  指定されキー サイズが、現在のアルゴリズムに対して有効かどうか判断します。 (SymmetricAlgorithm から継承されます。)
参照参照

関連項目

DESCryptoServiceProvider クラス
System.Security.Cryptography 名前空間

その他の技術情報

暗号サービス


このページでは「.NET Framework クラス ライブラリ リファレンス」からDESCryptoServiceProviderを検索した結果を表示しています。
Weblioに収録されているすべての辞書からDESCryptoServiceProviderを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からDESCryptoServiceProviderを検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「DESCryptoServiceProvider」の関連用語

DESCryptoServiceProviderのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



DESCryptoServiceProviderのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS