com.poscoict.glueframework.util
Class GlueCipher

java.lang.Object
  extended by com.poscoict.glueframework.util.GlueCipher

public class GlueCipher
extends Object

ÆÄÀÏ/¹®ÀÚ¿­ ¾Ïº¹È£È­ Ŭ·¡½º.


Field Summary
static String defaultkeyfileurl
           
static int kBufferSize
          ÆÄÀϾÏȣȭ¿¡ ¾²ÀÌ´Â ¹öÆÛ Å©±â ÁöÁ¤
static Key key
           
static String path
           
 
Constructor Summary
GlueCipher()
           
 
Method Summary
static String decrypt(String encryptedString)
          ¹®ÀÚ¿­ ´ëĪ º¹È£È­.
static void decryptFile(String infile, String outfile)
          ÆÄÀÏ ´ëĪ º¹È£È­.
static String encrypt(String unencryptedString)
          ¹®ÀÚ¿­ ´ëĪ ¾Ïȣȭ.
static void encryptFile(String infile, String outfile)
          ÆÄÀÏ ´ëĪ ¾Ïȣȭ.
static File makekey()
          ºñ¹ÐÅ° »ý¼º¸Þ¼Òµå
static File makekey(String filename)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

kBufferSize

public static final int kBufferSize
ÆÄÀϾÏȣȭ¿¡ ¾²ÀÌ´Â ¹öÆÛ Å©±â ÁöÁ¤

See Also:
Constant Field Values

key

public static Key key

path

public static String path

defaultkeyfileurl

public static final String defaultkeyfileurl
Constructor Detail

GlueCipher

public GlueCipher()
Method Detail

makekey

public static File makekey()
                    throws IOException,
                           NoSuchAlgorithmException
ºñ¹ÐÅ° »ý¼º¸Þ¼Òµå

Returns:
void
Throws:
IOException - ,java.security.NoSuchAlgorithmException
NoSuchAlgorithmException

makekey

public static File makekey(String filename)
                    throws IOException,
                           NoSuchAlgorithmException
Parameters:
filename -
Returns:
Throws:
IOException
NoSuchAlgorithmException

encrypt

public static String encrypt(String unencryptedString)
                      throws Exception
¹®ÀÚ¿­ ´ëĪ ¾Ïȣȭ.

Parameters:
unencryptedString - ºñ¹ÐÅ° ¾Ïȣȭ¸¦ Èñ¸ÁÇÏ´Â ¹®ÀÚ¿­
Returns:
String ¾ÏȣȭµÈ ID
Throws:
Exception

decrypt

public static String decrypt(String encryptedString)
                      throws Exception
¹®ÀÚ¿­ ´ëĪ º¹È£È­.

Parameters:
encryptedString - ºñ¹ÐÅ° º¹È£È­¸¦ Èñ¸ÁÇÏ´Â ¹®ÀÚ¿­
Returns:
String º¹È£È­µÈ ID
Throws:
Exception

encryptFile

public static void encryptFile(String infile,
                               String outfile)
                        throws Exception
ÆÄÀÏ ´ëĪ ¾Ïȣȭ.

Parameters:
infile - ¾ÏȣȭÀ» Èñ¸ÁÇÏ´Â ÆÄÀϸí
outfile - ¾ÏȣȭµÈ ÆÄÀϸí
Throws:
Exception

decryptFile

public static void decryptFile(String infile,
                               String outfile)
                        throws Exception
ÆÄÀÏ ´ëĪ º¹È£È­.

Parameters:
infile - º¹È£È­À» Èñ¸ÁÇÏ´Â ÆÄÀϸí
outfile - º¹È£È­µÈ ÆÄÀϸí
Throws:
Exception


Copyright © 2013–2015 POSCO ICT SWÁ¦Ç°±â¼úÆÀ. All rights reserved.