Class Encryption

java.lang.Object
com.bradyrussell.uiscoin.Encryption

public class Encryption
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    Encryption()  
  • Method Summary

    Modifier and Type Method Description
    static byte[] decrypt​(byte[] Data, byte[] Key)  
    static byte[] encrypt​(byte[] Data, byte[] Key)  

    Methods inherited from class java.lang.Object

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

  • Method Details

    • encrypt

      public static byte[] encrypt​(byte[] Data, byte[] Key) throws javax.crypto.NoSuchPaddingException, java.security.NoSuchAlgorithmException, java.security.InvalidKeyException, javax.crypto.BadPaddingException, javax.crypto.IllegalBlockSizeException
      Throws:
      javax.crypto.NoSuchPaddingException
      java.security.NoSuchAlgorithmException
      java.security.InvalidKeyException
      javax.crypto.BadPaddingException
      javax.crypto.IllegalBlockSizeException
    • decrypt

      public static byte[] decrypt​(byte[] Data, byte[] Key) throws javax.crypto.NoSuchPaddingException, java.security.NoSuchAlgorithmException, java.security.InvalidKeyException, javax.crypto.BadPaddingException, javax.crypto.IllegalBlockSizeException
      Throws:
      javax.crypto.NoSuchPaddingException
      java.security.NoSuchAlgorithmException
      java.security.InvalidKeyException
      javax.crypto.BadPaddingException
      javax.crypto.IllegalBlockSizeException