Click or drag to resize

RC4UtilityKeystream(String) Method

Generates an RC4 byte keystream that is intended to be XOR'd with plaintext.

Namespace: Orthogonal.Common.Basic
Assembly: Orthogonal.Common.Basic (in Orthogonal.Common.Basic.dll) Version: 3.2.5
Syntax
C#
public static IEnumerable<byte> Keystream(
	string key
)

Parameters

key  String
A non-empty string to generate the encryption key bytes via UTF-8 encoding.

Return Value

IEnumerableByte
An enumerable endless byte keystream.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if the key is null.
ArgumentExceptionThrown if the key is an empty string.
See Also