use of com.google.common.io.BaseEncoding in project graylog2-server by Graylog2.
the class Base32HumanDecode method getEncodedValue.
@Override
protected String getEncodedValue(String value, boolean omitPadding) {
BaseEncoding encoding = BaseEncoding.base32();
encoding = omitPadding ? encoding.omitPadding() : encoding;
return new String(encoding.decode(value), StandardCharsets.UTF_8);
}
Aggregations