Java Salt Value Create generateSalt()

Here you can find the source of generateSalt()

Description

generate Salt

License

Open Source License

Declaration

public static String generateSalt() throws NoSuchAlgorithmException 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;

public class Main {
    public static String generateSalt() throws NoSuchAlgorithmException {
        SecureRandom secureRandom = SecureRandom.getInstance("SHA1PRNG");
        return String.valueOf(secureRandom.nextInt());
    }//from ww w .j a  v  a  2s.co m
}

Related

  1. generateSalt()
  2. generateSalt()
  3. generateSalt()
  4. generateSalt()
  5. generateSalt()
  6. generateSalt()
  7. generateSalt()
  8. generateSalt()
  9. generateSalt()