com.oceanprotocol.secretstore.helpers.SecretStoreHelper 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
The newest version!
package com.oceanprotocol.secretstore.helpers;
/**
* Secret Store Helper functions
*/
public final class SecretStoreHelper {
/**
* Given an input string generates a Document Key ID (SHA256 Hex)
* @param docId seed for generating the document key id
* @return document key id
*/
public static String generateDocumentKeyId(String docId) {
return EncryptionHelper.encryptSHA256(docId);
}
/**
* Removes quotes of a String
* @param input input string
* @return string without quotes
*/
public static String removeQuotes(String input) {
return input.replace("\"", "");
}
}