Table of Contents

Class PasswordConverter

Namespace
Org.BouncyCastle.Crypto
Assembly
BouncyCastle.Cryptography.dll

Standard char[] to byte[] converters for password based derivation algorithms.

public sealed class PasswordConverter : ICharToByteConverter
Inheritance
PasswordConverter
Implements
Inherited Members

Fields

Ascii

Do a straight char[] to 8 bit conversion.

public static readonly ICharToByteConverter Ascii

Field Value

ICharToByteConverter

Pkcs12

Do char[] to BMP conversion (i.e. 2 bytes per character).

public static readonly ICharToByteConverter Pkcs12

Field Value

ICharToByteConverter

Utf8

Do a char[] conversion by producing UTF-8 data.

public static readonly ICharToByteConverter Utf8

Field Value

ICharToByteConverter

Properties

Name

The name of the conversion.

public string Name { get; }

Property Value

string

Methods

Convert(char[])

Return a byte encoded representation of the passed in password.

public byte[] Convert(char[] password)

Parameters

password char[]

the characters to encode.

Returns

byte[]