Click or drag to resize

NeonVaultEncrypt Method (String, String)

Encrypts a file to a byte array.

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

Parameters

sourcePath
Type: SystemString
The source path.
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