com.stimulsoft.report.dictionary.databases
Class StiEncryptionConnectionString

java.lang.Object
  extended by com.stimulsoft.report.dictionary.databases.StiEncryptionConnectionString

public class StiEncryptionConnectionString
extends java.lang.Object

Copyright Stimulsoft


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

Constructor Detail

StiEncryptionConnectionString

public StiEncryptionConnectionString()
Method Detail

encrypt

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

encrypt

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

encrypt

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

decrypt

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

decrypt

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

decrypt

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

generateRandomKey

public int[] generateRandomKey()

toB

public byte[] toB(int[] in)

toI

public int[] toI(byte[] in)

main

public static void main(java.lang.String[] args)
                 throws java.security.NoSuchAlgorithmException,
                        java.io.UnsupportedEncodingException,
                        StiException
Throws:
java.security.NoSuchAlgorithmException
java.io.UnsupportedEncodingException
StiException