"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getFileHash = getFileHash;

var _sha = _interopRequireDefault(require("sha3"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/**
 * Calculates the SHA3-512 hash of and returns it in base64 encoding
 *
 * @param content The string that should be hashed
 */
function getFileHash(content) {
  return new _sha.default(512).update(content).digest("base64");
}