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–2016 POSCO ICT. All rights reserved.