Class DefaultCrypter

  • All Implemented Interfaces:
    java.io.Serializable, ICrypter

    public class DefaultCrypter
    extends java.lang.Object
    implements ICrypter
    Default encryption and decryption implementation.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultCrypter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] decrypt​(byte[] encrypted)  
      byte[] encrypt​(byte[] decrypted)  
      protected javax.crypto.Cipher getCipher()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultCrypter

        public DefaultCrypter()
    • Method Detail

      • getCipher

        protected javax.crypto.Cipher getCipher()
                                         throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
      • encrypt

        public byte[] encrypt​(byte[] decrypted)
        Specified by:
        encrypt in interface ICrypter
      • decrypt

        public byte[] decrypt​(byte[] encrypted)
        Specified by:
        decrypt in interface ICrypter