संपादित करें

इसके माध्यम से साझा किया गया


SymmetricAlgorithm.GenerateIV Method

Definition

When overridden in a derived class, generates a random initialization vector (IV) to use for the algorithm.

public:
 abstract void GenerateIV();
public abstract void GenerateIV ();
abstract member GenerateIV : unit -> unit
Public MustOverride Sub GenerateIV ()

Remarks

In general, there is no reason to use this method, because CreateEncryptor() or CreateEncryptor(null, null) automatically generates both an initialization vector and a key. However, you may want to use the GenerateIV method to reuse a symmetric algorithm instance with a different initialization vector.

Applies to

See also