private static String hash(byte[] buf) {
        byte[] digest = createDigest().digest(buf);
        return Base64.getEncoder().encodeToString(digest);
    }
Trusts the given public key hash for the sender.

@param sender the sender
@param hash   the public key hash
common/src/main/java/me/lucko/luckperms/common/webeditor/store/WebEditorKeystore.java