Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.pjsofts.eurobudget.crypt
Class Crypt  view Crypt download Crypt.java

java.lang.Object
  extended bycom.pjsofts.eurobudget.crypt.Crypt

public class Crypt
extends java.lang.Object

test of cypher and cryptographic package of jdk (jce) will encode a text file , sign it , save this a new file then decode it in another new file too. then compare original and new one.


Field Summary
private  javax.crypto.Cipher cipher
           
private  javax.crypto.SecretKey key
          key used both in encoding and decoding
 
Constructor Summary
Crypt()
          Creates a new instance of Crypt
 
Method Summary
 void decode(java.io.File fromFile, java.io.File toFile)
          decode a file
 void encode(java.io.File fromFile, java.io.File toFile)
          encode a file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key

private javax.crypto.SecretKey key
key used both in encoding and decoding


cipher

private javax.crypto.Cipher cipher
Constructor Detail

Crypt

public Crypt()
Creates a new instance of Crypt

Method Detail

encode

public void encode(java.io.File fromFile,
                   java.io.File toFile)
encode a file


decode

public void decode(java.io.File fromFile,
                   java.io.File toFile)
decode a file