Encrypt a message and pack it up into PKCS#1 v1.5 format Plug compatible with RSACryptoServiceProvider.Encrypt

Namespace: MonoSoftware.Core.Cryptography
Assembly: MonoSoftware.Core (in MonoSoftware.Core.dll) Version: 1.0.40.669 (1.0.40.669)

Syntax

C#
public byte[] Encrypt(
	byte[] input,
	bool fOAEP
)
Visual Basic
Public Function Encrypt ( 
	input As Byte(),
	fOAEP As Boolean
) As Byte()
Visual C++
public:
array<unsigned char>^ Encrypt(
	array<unsigned char>^ input, 
	bool fOAEP
)
F#
member Encrypt : 
        input : byte[] * 
        fOAEP : bool -> byte[] 

Parameters

input
Type: array<System..::..Byte>[]()[][]
Message to encrypt
fOAEP
Type: System..::..Boolean

Return Value

Type: array<Byte>[]()[][]
Encrypted message

See Also