Android Open Source - adkintun-mobile-browser Encrypter






From Project

Back to project page adkintun-mobile-browser.

License

The source code is released under:

Apache License

If you think the Android project adkintun-mobile-browser listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/**
* Copyright 2013 NIC Chile Research Labs
* // www.  j ava  2 s  .co  m
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cl.niclabs.adkintunmobile.crypto;

import java.io.IOException;
/**
 * Interface of the methods of encryption
 * @author nicolas
 *
 */
public interface Encrypter {

  /**
   * Encrypt a String and return its encrypted bytes
   * @param plain String to encrypt
   * @return the encrypted bytes
   */
  public byte[] stringEncrypter(String plain);
  
  /**
   * Encrypt a file and return its encrypted bytes
   * @param in path to file to encrypt
   * @return the encrypted bytes
   */
  public byte[] fileEncrypter(String in) throws IOException;
  
  /**
   * Encrypt a file and save in another file its encrypted bytes
   * @param in
   *            path to the file to encrypt
   * @param out
   *            path to the file where the encrypted data will be saved (if file already exist it will be overwritten)
   * @param append
   *            if true encrypted data will be appended to out, otherwise out will be overwritten
   */
  public void fileEncrypter(String in, String out, boolean append) throws IOException;
  
}




Java Source Code List

cl.niclabs.adkintunmobile.browser.C.java
cl.niclabs.adkintunmobile.browser.Client.java
cl.niclabs.adkintunmobile.browser.CustomWebView.java
cl.niclabs.adkintunmobile.browser.DropDownAnim.java
cl.niclabs.adkintunmobile.browser.FileHandler.java
cl.niclabs.adkintunmobile.browser.MainActivity.java
cl.niclabs.adkintunmobile.browser.PreferencesActivity.java
cl.niclabs.adkintunmobile.browser.Register.java
cl.niclabs.adkintunmobile.browser.UrlUtils.java
cl.niclabs.adkintunmobile.crypto.AESEncrypter.java
cl.niclabs.adkintunmobile.crypto.Encrypter.java
cl.niclabs.adkintunmobile.crypto.RSAEncrypter.java