com.stimulsoft.base
Class StiEncryption

java.lang.Object
  extended by com.stimulsoft.base.StiEncryption

public class StiEncryption
extends java.lang.Object

Copyright Stimulsoft


Constructor Summary
StiEncryption()
           
 
Method Summary
static byte[] decodeBase64(java.lang.String value)
           
static int[] decrypt(int[] src, int[] key)
           
static int[] decrypt(int[] src, java.lang.String password)
           
static java.lang.String decrypt(java.lang.String src, java.lang.String password)
           
static byte[] encrypt(byte[] src, java.lang.String password)
           
static int[] encrypt(int[] src, int[] key)
           
static java.lang.String encrypt(java.lang.String src, java.lang.String password)
           
static int[] generateRandomKey()
           
static byte[] toB(int[] in)
           
static int[] toI(byte[] in)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StiEncryption

public StiEncryption()
Method Detail

encrypt

public static int[] encrypt(int[] src,
                            int[] key)

encrypt

public static byte[] encrypt(byte[] src,
                             java.lang.String password)
                      throws java.security.NoSuchAlgorithmException
Throws:
java.security.NoSuchAlgorithmException

decodeBase64

public static byte[] decodeBase64(java.lang.String value)

encrypt

public static java.lang.String encrypt(java.lang.String src,
                                       java.lang.String password)
                                throws java.security.NoSuchAlgorithmException
Throws:
java.security.NoSuchAlgorithmException

decrypt

public static int[] decrypt(int[] src,
                            int[] key)

decrypt

public static int[] decrypt(int[] src,
                            java.lang.String password)
                     throws java.security.NoSuchAlgorithmException
Throws:
java.security.NoSuchAlgorithmException

decrypt

public static java.lang.String decrypt(java.lang.String src,
                                       java.lang.String password)
                                throws java.security.NoSuchAlgorithmException
Throws:
java.security.NoSuchAlgorithmException

generateRandomKey

public static int[] generateRandomKey()

toB

public static byte[] toB(int[] in)

toI

public static int[] toI(byte[] in)