@aws-amplify/auth
Version:
Auth category of aws-amplify
1 lines • 729 B
Source Map (JSON)
{"version":3,"file":"getHashFromHex.mjs","sources":["../../../../../../src/providers/cognito/utils/srp/getHashFromHex.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { getBytesFromHex } from './getBytesFromHex';\nimport { getHashFromData } from './getHashFromData';\n/**\n * Calculate a hash from a hex string\n * @param {string} hexStr Value to hash.\n * @returns {string} Hex-encoded hash.\n * @private\n */\nexport const getHashFromHex = (hexStr) => getHashFromData(getBytesFromHex(hexStr));\n"],"names":[],"mappings":";;;AAAA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACY,MAAC,cAAc,GAAG,CAAC,MAAM,KAAK,eAAe,CAAC,eAAe,CAAC,MAAM,CAAC;;;;"}