com.oceanprotocol.secretstore.helpers.EncryptionHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of secret-store-client Show documentation
Show all versions of secret-store-client Show documentation
Parity secret store java client
package com.oceanprotocol.secretstore.helpers;
/**
* Encryption Helper functions
*/
public abstract class EncryptionHelper {
/**
* Calculates the SHA-256 digest and returns the value as a hex string
* @param input string to encrypt
* @return encrypted string in SHA-256
*/
public static String encryptSHA256(String input) {
return org.apache.commons.codec.digest.DigestUtils.sha256Hex(input);
}
}