package com.orhanobut.hawk;

interface Encryption {

  /**
   * Initialize the encryption algorithm, If the device does not support required
   * crypto return false
   *
   * @return true if crypto is supported
   */
  boolean init();

  /**
   * Encrypt the given string and returns cipher text
   *
   * @param key   is the given key
   * @param value is the plain text
   *
   * @return cipher text as string
   */
  String encrypt(String key, String value) throws Exception;

  /**
   * Decrypt the given cipher text and return plain text
   *
   * @param key   is the given key
   * @param value is the cipher text
   *
   * @return plain text
   */
  String decrypt(String key, String value) throws Exception;

}

@@ -22,16 +22,23 @@
 .hawk;%0A%0A
+public 
 interfac

make encryption interface public