Click or drag to resize

NeonVaultEncrypt Method (Stream, String)

Encrypts a stream to a byte array.

Namespace:  Neon.Cryptography
Assembly:  Neon.Cryptography (in Neon.Cryptography.dll) Version: 2.1.0
Syntax
public byte[] Encrypt(
	Stream source,
	string passwordName
)

Parameters

source
Type: System.IOStream
The source stream.
passwordName
Type: SystemString
Identifies the password.

Return Value

Type: Byte
The encrypted bytes.
Exceptions
ExceptionCondition
CryptographicExceptionThrown if the password was not found or for other encryption problems.
See Also