List of usage examples for org.apache.hadoop.mapreduce.security SecureShuffleUtils hashFromString
public static String hashFromString(String enc_str, SecretKey key) throws IOException
From source file:it.crs4.pydoop.mapreduce.pipes.Application.java
License:Apache License
public static String createDigest(byte[] password, String data) throws IOException { SecretKey key = JobTokenSecretManager.createSecretKey(password); return SecureShuffleUtils.hashFromString(data, key); }
From source file:it.crs4.pydoop.mapreduce.pipes.CommonStub.java
License:Apache License
protected String createDigest(byte[] password, String data) throws IOException { SecretKey key = JobTokenSecretManager.createSecretKey(password); return SecureShuffleUtils.hashFromString(data, key); }