List of usage examples for java.lang Float toHexString
public static String toHexString(float f)
From source file:Main.java
public static void main(String[] args) { Float floatObject2 = Float.valueOf(1.1F); System.out.println(floatObject2); System.out.println(Float.toHexString(floatObject2)); }
From source file:Main.java
public static String floatToHex(float val) { return Float.toHexString(val); }
From source file:iddb.core.util.PasswordUtils.java
public static String hashPassword(String raw_password) { Random random = new Random(raw_password.length() + System.currentTimeMillis()); String salt = StringUtils.left(HashUtils.getSHA1Hash( Float.toHexString(random.nextFloat()) + Float.toHexString(System.currentTimeMillis())), 5); String hashedPassword = HashUtils.getSHA1Hash(salt + raw_password); return salt + "$" + hashedPassword; }
From source file:edu.umich.flowfence.common.TaintSet.java
public Set<String> toStringSet() { if (taints.isEmpty()) { return Collections.emptySet(); }//w w w . ja v a 2s.c o m HashSet<String> stringSet = new HashSet<>(); for (Map.Entry<ComponentName, Float> entry : taints.entrySet()) { stringSet.add(Float.toHexString(entry.getValue()) + SEPARATOR + entry.getKey().flattenToShortString()); } return Collections.unmodifiableSet(stringSet); }