org.productivity.java.habitat4j.crypto.decryptor
Class StaticCrypto

java.lang.Object
  extended by org.productivity.java.habitat4j.crypto.decryptor.StaticCrypto
Direct Known Subclasses:
CryptoTests, GenericCrypto, GenericKeyInfo, KeyReader

public abstract class StaticCrypto
extends java.lang.Object


Constructor Summary
StaticCrypto()
           
 
Method Summary
static java.lang.String createString(byte[] in, java.lang.String charSet)
           
static byte[] decode(java.lang.String data)
           
static java.lang.String encode(byte[] in)
           
static int findPadEndIndex(byte[] data, int blockSize)
           
static byte[] getBytes(java.lang.String in, java.lang.String charSet)
           
static byte[] pad(byte[] data, int blockSize)
           
static byte[] removePad(byte[] in, int blockSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticCrypto

public StaticCrypto()
Method Detail

getBytes

public static byte[] getBytes(java.lang.String in,
                              java.lang.String charSet)
                       throws DecryptorException
Throws:
DecryptorException

createString

public static java.lang.String createString(byte[] in,
                                            java.lang.String charSet)
                                     throws DecryptorException
Throws:
DecryptorException

pad

public static byte[] pad(byte[] data,
                         int blockSize)

findPadEndIndex

public static int findPadEndIndex(byte[] data,
                                  int blockSize)

removePad

public static byte[] removePad(byte[] in,
                               int blockSize)

encode

public static java.lang.String encode(byte[] in)

decode

public static byte[] decode(java.lang.String data)
                     throws DecryptorException
Throws:
DecryptorException