Package org.jasypt.digest

Examples of org.jasypt.digest.StandardStringDigester.digest()


public class SignupUtils {
  public static String generateEmailConfirmHash(User user)
  {
    //FIXME: This should really use its own salt, but this is sufficient for now, since the encrypted password uses a salt
    StandardStringDigester digestor = new StandardStringDigester();
    return digestor.digest(user.getName() + user.getPasswordEncrypted())
  }
 
  public static boolean checkEmailHash(User user, String hash)
  {
    StandardStringDigester digestor = new StandardStringDigester();
View Full Code Here


    StandardStringDigester stringDigester = new StandardStringDigester();
    // Configure it
    stringDigester.setAlgorithm("SHA-512");
    stringDigester.setSaltSizeBytes(128);
    // Generate a digest
    str = stringDigester.digest(TEXT_TO_ENCRYPT);
    // Display it
    System.out.printf("testDigesters : String digest '%s'\n", str);
  }

  /**
 
View Full Code Here

       
       
        StandardStringDigester digester = new StandardStringDigester();
        digester.setConfig(config);
       
        return digester.digest(input);
       
    }

   
    /**
 
View Full Code Here

       
       
        final StandardStringDigester digester = new StandardStringDigester();
        digester.setConfig(config);
       
        return digester.digest(input);
       
    }

   
    /**
 
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.