"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.hashPIN = void 0;
var _reactNativeArgon = _interopRequireDefault(require("react-native-argon2"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const hashPIN = async (PIN, salt) => {
  try {
    const result = await (0, _reactNativeArgon.default)(PIN, salt, {});
    const {
      rawHash
    } = result;
    return rawHash;
  } catch (error) {
    throw new Error(`Error generating hash for PIN ${String((error === null || error === void 0 ? void 0 : error.message) ?? error)}`);
  }
};
exports.hashPIN = hashPIN;
//# sourceMappingURL=crypto.js.map