Package pygar.zoneable
Class FieldCryptoDemo1
java.lang.Object
pygar.zoneable.FieldCrypto
pygar.zoneable.FieldCryptoXmlTxt0
pygar.zoneable.FieldCryptoDemo1
public class FieldCryptoDemo1 extends FieldCryptoXmlTxt0
-
Nested Class Summary
Nested classes/interfaces inherited from class pygar.zoneable.FieldCryptoXmlTxt0
FieldCryptoXmlTxt0.ConcealReal, FieldCryptoXmlTxt0.RealDetail
-
Field Summary
Fields inherited from class pygar.zoneable.FieldCrypto
cipherBlockSize, cipherDecrypt, cipherEncrypt, cipherOutputSize, crypto, key, table
-
Constructor Summary
Constructors Constructor Description FieldCryptoDemo1(CryptoEngine crypto, java.security.Key key, EncryptedFieldTable table)
-
Method Summary
Modifier and Type Method Description void
decode(java.io.InputStream in, java.io.OutputStream out)
Decode the in stream applying the encryption algorithm to the fields as specified in the table and placing the results on the out stream.void
encode(java.io.InputStream in, java.io.OutputStream out)
Encode the in stream applying the encryption algorithm to the fields as specified in the table and placing results on the out stream.static void
main(java.lang.String[] args)
The main procedure is used only during development to test some internal methods.Methods inherited from class pygar.zoneable.FieldCryptoXmlTxt0
compareStreams, decodeField, decodeField, decodeString, decryptPartiallyEncryptedStream, encodeField, encodeString, partiallyEncryptStream, verifyField
-
Constructor Details
-
FieldCryptoDemo1
public FieldCryptoDemo1(CryptoEngine crypto, java.security.Key key, EncryptedFieldTable table) throws java.security.NoSuchAlgorithmException, javax.crypto.NoSuchPaddingException, java.security.InvalidKeyException- Throws:
java.security.NoSuchAlgorithmException
javax.crypto.NoSuchPaddingException
java.security.InvalidKeyException
-
-
Method Details
-
decode
public void decode(java.io.InputStream in, java.io.OutputStream out)Description copied from class:FieldCrypto
Decode the in stream applying the encryption algorithm to the fields as specified in the table and placing the results on the out stream.- Overrides:
decode
in classFieldCryptoXmlTxt0
-
encode
public void encode(java.io.InputStream in, java.io.OutputStream out)Description copied from class:FieldCrypto
Encode the in stream applying the encryption algorithm to the fields as specified in the table and placing results on the out stream.- Overrides:
encode
in classFieldCryptoXmlTxt0
-
main
public static void main(java.lang.String[] args) throws java.lang.ExceptionThe main procedure is used only during development to test some internal methods.- Parameters:
args
-- Throws:
java.lang.Exception
-