Encodes a PIN as BCD (binary coded digits) and writes it to a destination buffer.

Namespace: CardWerk.SmartCard.Util
Assembly: CardWerk.SmartCard (in CardWerk.SmartCard.dll)

Public Shared Sub EncodeBcd( _ 
ByVal pinInput As String, _ 
ByVal destinationBuffer As Byte(), _ 
ByVal destinationBufferOffset As Integer
)
This language is not supported or no code example is available.
public static void EncodeBcd( 
string pinInput
byte[] destinationBuffer
int destinationBufferOffset 
)
This language is not supported or no code example is available.
public:  
static void EncodeBcd( 
String^ pinInput
array< Byte >^ destinationBuffer
int destinationBufferOffset 
)
This language is not supported or no code example is available.
public static function EncodeBcd( 
pinInput : String
destinationBuffer : byte[], 
destinationBufferOffset : int 
);
This language is not supported or no code example is available.

Parameters

pinInput
Type: string

PIN to be encoded. Must be numeric only.

destinationBuffer
Type: byte[]

Destination byte array where the BCD digits are inserted.

destinationBufferOffset
Type: int

Byte offset where the first BCD digit will be inserted.

Marc, 9/29/2022.

.NET Framework

Supported in: 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

.NET Core

Supported in: 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0

.NET Standard

Supported in: 2.0