Package com.im.imjutil.cipher

Examples of com.im.imjutil.cipher.Cipher.encrypt()


  public static String encryptPassword(String password) {
    String pass = password;
    try {
      if (Validator.isValid(pass)) {
        Cipher cipher = Cipher.getInstance();
        byte[] coded = cipher.encrypt(pass.getBytes());
        pass = Base64Coder.encrypt(coded);
      }
    } catch (Exception e) {
      String error = "Erro ao cifrar a senha.";
      Logger.error(error, e);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.