com.stimulsoft.base
Class StiEncryption

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

public class StiEncryption
extends Object

Copyright Stimulsoft


Constructor Summary
StiEncryption()
           
 
Method Summary
static byte[] decodeBase64(String value)
           
static int[] decrypt(int[] src, int[] key)
           
static int[] decrypt(int[] src, String password)
           
static String decrypt(String src, String password)
           
static byte[] encrypt(byte[] src, String password)
           
static int[] encrypt(int[] src, int[] key)
           
static String encrypt(String src, String password)
           
static int[] generateRandomKey()
           
static byte[] toB(int[] in)
           
static int[] toI(byte[] in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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,
                             String password)
                      throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException

decodeBase64

public static byte[] decodeBase64(String value)

encrypt

public static String encrypt(String src,
                             String password)
                      throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException

decrypt

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

decrypt

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

decrypt

public static String decrypt(String src,
                             String password)
                      throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException

generateRandomKey

public static int[] generateRandomKey()

toB

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

toI

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


Copyright © 2017 Stimulsoft. All Rights Reserved.