All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.oceanprotocol.secretstore.helpers.SecretStoreHelper Maven / Gradle / Ivy

There is a newer version: 0.1.4
Show 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("\"", "");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy