Java Hash Calculate getHashString()

Here you can find the source of getHashString()

Description

get Hash String

License

Open Source License

Declaration

static String getHashString() 

Method Source Code

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

import java.security.SecureRandom;

public class Main {
    static SecureRandom hashGenerator = new SecureRandom();

    static String getHashString() {
        long hashLong;
        synchronized (hashGenerator) {
            hashLong = hashGenerator.nextLong() & 0x7FFFFFFFFFFFFFFFL;
        }//  www. j  ava2 s  .c o m

        return Long.toHexString(hashLong);
    }
}

Related

  1. getHashMD5(String arg)
  2. getHashMD5(String str)
  3. getHashMD5(String text)
  4. getHashMDFive(String str)
  5. getHashOf(String s)
  6. getHashString(byte[] data)
  7. getHashString(String password, String salt)
  8. getHashWithSalt(String input, String algorithm, String salt)
  9. hash()