共用方式為


Secret 類別

定義

表示儲存在記憶體中的秘密值。

public ref class Secret sealed : IDisposable, Microsoft::AspNetCore::DataProtection::ISecret
public sealed class Secret : IDisposable, Microsoft.AspNetCore.DataProtection.ISecret
type Secret = class
    interface IDisposable
    interface ISecret
Public NotInheritable Class Secret
Implements IDisposable, ISecret
繼承
Secret
實作

建構函式

Secret(ArraySegment<Byte>)

從提供的輸入值建立新的秘密,其中輸入值會指定為數組區段。

Secret(Byte*, Int32)

從提供的輸入值建立新的秘密,其中輸入值會指定為 Unmanaged 記憶體的指標。

Secret(Byte[])

從提供的輸入值建立新的秘密,其中輸入值會指定為數組。

Secret(ISecret)

從另一個秘密物件建立新的秘密。

屬性

Length

秘密值的位元組 (長度) 。

方法

Dispose()

從記憶體抹除秘密。

Random(Int32)

傳回從密碼編譯安全 RNG 擷取的完全隨機位元組的秘密。

WriteSecretIntoBuffer(ArraySegment<Byte>)

將秘密值寫入指定的緩衝區。

WriteSecretIntoBuffer(Byte*, Int32)

將秘密值寫入指定的緩衝區。

適用於