Bouncy Castle Cryptography Library 1.77.0

org.bouncycastle.crypto
Class PasswordConverter

java.lang.Object
  |
  +--org.bouncycastle.crypto.PasswordConverter

public final class PasswordConverter
extends java.lang.Object

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


Field Summary
static CharToByteConverter ASCII
          Do a straight char[] to 8 bit conversion.
static CharToByteConverter PKCS12
          Do char[] to BMP conversion (i.e.
static CharToByteConverter UTF8
          Do a char[] conversion by producing UTF-8 data.
 
Constructor Summary
PasswordConverter()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ASCII

public static final CharToByteConverter ASCII
Do a straight char[] to 8 bit conversion.

UTF8

public static final CharToByteConverter UTF8
Do a char[] conversion by producing UTF-8 data.

PKCS12

public static final CharToByteConverter PKCS12
Do char[] to BMP conversion (i.e. 2 bytes per character).
Constructor Detail

PasswordConverter

public PasswordConverter()

Bouncy Castle Cryptography Library 1.77.0