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
Pkcs12
Do char[] to BMP conversion (i.e. 2 bytes per character).
public static readonly ICharToByteConverter Pkcs12
Field Value
Utf8
Do a char[] conversion by producing UTF-8 data.
public static readonly ICharToByteConverter Utf8
Field Value
Properties
Name
The name of the conversion.
public string Name { get; }
Property Value
Methods
Convert(char[])
Return a byte encoded representation of the passed in password.
public byte[] Convert(char[] password)
Parameters
passwordchar[]the characters to encode.
Returns
- byte[]