How to use the @aws-sdk/util-hex-encoding.fromHex function in @aws-sdk/util-hex-encoding

To help you get started, we’ve selected a few @aws-sdk/util-hex-encoding examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aws / aws-sdk-js-v3 / packages / crypto-sha256-js / src / knownHashes.fixture.ts View on Github external
],
    [
        fromHex('616161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('b4d5e56e929ba4cda349e9274e3603d0be246b82016bca20f363963c5f2d6845'),
    ],
    [
        fromHex('61616161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('e33cdf9c7f7120b98e8c78408953e07f2ecd183006b5606df349b4c212acf43e'),
    ],
    [
        fromHex('6161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('c0f8bd4dbc2b0c03107c1c37913f2a7501f521467f45dd0fef6958e9a4692719'),
    ],
    [
        fromHex('616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('7a538607fdaab9296995929f451565bbb8142e1844117322aafd2b3d76b01aff'),
    ],
    [
        fromHex('61616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('66d34fba71f8f450f7e45598853e53bfc23bbd129027cbb131a2f4ffd7878cd0'),
    ],
    [
        fromHex('6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('16849877c6c21ef0bfa68e4f6747300ddb171b170b9f00e189edc4c2fc4db93e'),
    ],
    [
        fromHex('616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('52789e3423b72beeb898456a4f49662e46b0cbb960784c5ef4b1399d327e7c27'),
    ],
    [
        fromHex('61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('6643110c5628fff59edf76d82d5bf573bf800f16a4d65dfb1e5d6f1a46296d0b'),
github aws / aws-sdk-js-v3 / packages / crypto-sha256-js / src / knownHashes.fixture.ts View on Github external
millionChars,
        fromHex('cdc76e5c9914fb9281a1c7e284d73e67f1809a48a497200e046d39ccc7112cd0'),
    ],
    [
        fromHex('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'),
        fromHex('45ad4b37c6e2fc0a2cfcc1b5da524132ec707615c2cae1dbbc43c97aa521db81')
    ]
];

/**
 * @see https://tools.ietf.org/html/rfc4231
 */
export const hmacTestVectors: Array<[Uint8Array, Uint8Array, Uint8Array]> = [
    [
        fromHex('0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b'),
        fromHex('4869205468657265'),
        fromHex('b0344c61d8db38535ca8afceaf0bf12b881dc200c9833da726e9376c2e32cff7'),
    ],
    [
        fromHex('4a656665'),
        fromHex('7768617420646f2079612077616e7420666f72206e6f7468696e673f'),
        fromHex('5bdcc146bf60754e6a042426089575c75a003f089d2739839dec58b964ec3843'),
    ],
    [
        fromHex('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'),
        fromHex('dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd'),
        fromHex('773ea91e36800e46854db8ebd09181a72959098b3ef8c122d9635514ced565fe'),
    ],
    [
        fromHex('0102030405060708090a0b0c0d0e0f10111213141516171819'),
        fromHex('cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd'),
        fromHex('82558a389a443c0ea4cc819899f2083a85f0faa3e578f8077a2e3ff46729665b'),
github aws / aws-sdk-js-v3 / packages / crypto-sha256-js / src / knownHashes.fixture.ts View on Github external
]
];

/**
 * @see https://tools.ietf.org/html/rfc4231
 */
export const hmacTestVectors: Array<[Uint8Array, Uint8Array, Uint8Array]> = [
    [
        fromHex('0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b'),
        fromHex('4869205468657265'),
        fromHex('b0344c61d8db38535ca8afceaf0bf12b881dc200c9833da726e9376c2e32cff7'),
    ],
    [
        fromHex('4a656665'),
        fromHex('7768617420646f2079612077616e7420666f72206e6f7468696e673f'),
        fromHex('5bdcc146bf60754e6a042426089575c75a003f089d2739839dec58b964ec3843'),
    ],
    [
        fromHex('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'),
        fromHex('dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd'),
        fromHex('773ea91e36800e46854db8ebd09181a72959098b3ef8c122d9635514ced565fe'),
    ],
    [
        fromHex('0102030405060708090a0b0c0d0e0f10111213141516171819'),
        fromHex('cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd'),
        fromHex('82558a389a443c0ea4cc819899f2083a85f0faa3e578f8077a2e3ff46729665b'),
    ],
    [
        fromHex('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'),
        fromHex('54657374205573696e67204c6172676572205468616e20426c6f636b2d53697a65204b6579202d2048617368204b6579204669727374'),
        fromHex('60e431591ee0b67f0d8a26aacbf5b77f8e0bc6213728c5140546040f0ee37f54'),
    ],
github aws / aws-sdk-js-v3 / packages / crypto-sha256-js / src / knownHashes.fixture.ts View on Github external
],
    [
        fromHex('6161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('365a9c3e2c2af0a56e47a9dac51c2c5381bf8f41273bad3175e0e619126ad087'),
    ],
    [
        fromHex('616161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('b4d5e56e929ba4cda349e9274e3603d0be246b82016bca20f363963c5f2d6845'),
    ],
    [
        fromHex('61616161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('e33cdf9c7f7120b98e8c78408953e07f2ecd183006b5606df349b4c212acf43e'),
    ],
    [
        fromHex('6161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('c0f8bd4dbc2b0c03107c1c37913f2a7501f521467f45dd0fef6958e9a4692719'),
    ],
    [
        fromHex('616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('7a538607fdaab9296995929f451565bbb8142e1844117322aafd2b3d76b01aff'),
    ],
    [
        fromHex('61616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('66d34fba71f8f450f7e45598853e53bfc23bbd129027cbb131a2f4ffd7878cd0'),
    ],
    [
        fromHex('6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('16849877c6c21ef0bfa68e4f6747300ddb171b170b9f00e189edc4c2fc4db93e'),
    ],
    [
        fromHex('616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('52789e3423b72beeb898456a4f49662e46b0cbb960784c5ef4b1399d327e7c27'),
github aws / aws-sdk-js-v3 / packages / crypto-sha256-js / src / knownHashes.fixture.ts View on Github external
fromHex('111bb261277afd65f0744b247cd3e47d386d71563d0ed995517807d5ebd4fba3'),
    ],
    [
        fromHex('616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('11ee391211c6256460b6ed375957fadd8061cafbb31daf967db875aebd5aaad4'),
    ],
    [
        fromHex('61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('35d5fc17cfbbadd00f5e710ada39f194c5ad7c766ad67072245f1fad45f0f530'),
    ],
    [
        fromHex('6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('f506898cc7c2e092f9eb9fadae7ba50383f5b46a2a4fe5597dbb553a78981268'),
    ],
    [
        fromHex('616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('7d3e74a05d7db15bce4ad9ec0658ea98e3f06eeecf16b4c6fff2da457ddc2f34'),
    ],
    [
        fromHex('61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('ffe054fe7ae0cb6dc65c3af9b61d5209f439851db43d0ba5997337df154668eb'),
    ],
    [
        fromHex('de188941a3375d3a8a061e67576e926dc71a7fa3f0cceb97452b4d3227965f9ea8cc75076d9fb9c5417aa5cb30fc22198b34982dbb629e'),
        fromHex('038051e9c324393bd1ca1978dd0952c2aa3742ca4f1bd5cd4611cea83892d382'),
    ],
    [
        millionChars,
        fromHex('cdc76e5c9914fb9281a1c7e284d73e67f1809a48a497200e046d39ccc7112cd0'),
    ],
    [
        fromHex('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'),
github aws / aws-sdk-js-v3 / packages / crypto-sha256-js / src / knownHashes.fixture.ts View on Github external
fromHex('bfc5fe0e360152ca98c50fab4ed7e3078c17debc2917740d5000913b686ca129'),
    ],
    [
        fromHex('61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('6c1b3dc7a706b9dc81352a6716b9c666c608d8626272c64b914ab05572fc6e84'),
    ],
    [
        fromHex('6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('abe346a7259fc90b4c27185419628e5e6af6466b1ae9b5446cac4bfc26cf05c4'),
    ],
    [
        fromHex('616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('a3f01b6939256127582ac8ae9fb47a382a244680806a3f613a118851c1ca1d47'),
    ],
    [
        fromHex('61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('9f4390f8d30c2dd92ec9f095b65e2b9ae9b0a925a5258e241c9f1e910f734318'),
    ],
    [
        fromHex('6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('b35439a4ac6f0948b6d6f9e3c6af0f5f590ce20f1bde7090ef7970686ec6738a'),
    ],
    [
        fromHex('616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('f13b2d724659eb3bf47f2dd6af1accc87b81f09f59f2b75e5c0bed6589dfe8c6'),
    ],
    [
        fromHex('61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('d5c039b748aa64665782974ec3dc3025c042edf54dcdc2b5de31385b094cb678'),
    ],
    [
        fromHex('6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
github aws / aws-sdk-js-v3 / packages / crypto-sha256-js / src / knownHashes.fixture.ts View on Github external
],
    [
        fromHex('6161616161616161616161616161616161616161'),
        fromHex('42492da06234ad0ac76f5d5debdb6d1ae027cffbe746a1c13b89bb8bc0139137'),
    ],
    [
        fromHex('616161616161616161616161616161616161616161'),
        fromHex('7df8e299c834de198e264c3e374bc58ecd9382252a705c183beb02f275571e3b'),
    ],
    [
        fromHex('61616161616161616161616161616161616161616161'),
        fromHex('ec7c494df6d2a7ea36668d656e6b8979e33641bfea378c15038af3964db057a3'),
    ],
    [
        fromHex('6161616161616161616161616161616161616161616161'),
        fromHex('897d3e95b65f26676081f8b9f3a98b6ee4424566303e8d4e7c7522ebae219eab'),
    ],
    [
        fromHex('616161616161616161616161616161616161616161616161'),
        fromHex('09f61f8d9cd65e6a0c258087c485b6293541364e42bd97b2d7936580c8aa3c54'),
    ],
    [
        fromHex('61616161616161616161616161616161616161616161616161'),
        fromHex('2f521e2a7d0bd812cbc035f4ed6806eb8d851793b04ba147e8f66b72f5d1f20f'),
    ],
    [
        fromHex('6161616161616161616161616161616161616161616161616161'),
        fromHex('9976d549a25115dab4e36d0c1fb8f31cb07da87dd83275977360eb7dc09e88de'),
    ],
    [
        fromHex('616161616161616161616161616161616161616161616161616161'),
        fromHex('cc0616e61cbd6e8e5e34e9fb2d320f37de915820206f5696c31f1fbd24aa16de'),
github aws / aws-sdk-js-v3 / packages / crypto-sha256-js / src / knownHashes.fixture.ts View on Github external
export const hashTestVectors: Array<[Uint8Array, Uint8Array]> = [
    [
        Uint8Array.from([97, 98, 99]),
        fromHex('ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad'),
    ],
    [
        new Uint8Array(0),
        fromHex('e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855')
    ],
    [
        fromHex('61'),
        fromHex('ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb'),
    ],
    [
        fromHex('6161'),
        fromHex('961b6dd3ede3cb8ecbaacbd68de040cd78eb2ed5889130cceb4c49268ea4d506'),
    ],
    [
        fromHex('616161'),
        fromHex('9834876dcfb05cb167a5c24953eba58c4ac89b1adf57f28f2f9d09af107ee8f0'),
    ],
    [
        fromHex('61616161'),
        fromHex('61be55a8e2f6b4e172338bddf184d6dbee29c98853e0a0485ecee7f27b9af0b4'),
    ],
    [
        fromHex('6161616161'),
        fromHex('ed968e840d10d2d313a870bc131a4e2c311d7ad09bdf32b3418147221f51a6e2'),
    ],
    [
        fromHex('616161616161'),
github aws / aws-sdk-js-v3 / packages / crypto-sha256-js / src / knownHashes.fixture.ts View on Github external
export const hashTestVectors: Array<[Uint8Array, Uint8Array]> = [
    [
        Uint8Array.from([97, 98, 99]),
        fromHex('ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad'),
    ],
    [
        new Uint8Array(0),
        fromHex('e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855')
    ],
    [
        fromHex('61'),
        fromHex('ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb'),
    ],
    [
        fromHex('6161'),
        fromHex('961b6dd3ede3cb8ecbaacbd68de040cd78eb2ed5889130cceb4c49268ea4d506'),
    ],
    [
        fromHex('616161'),
        fromHex('9834876dcfb05cb167a5c24953eba58c4ac89b1adf57f28f2f9d09af107ee8f0'),
    ],
    [
        fromHex('61616161'),
        fromHex('61be55a8e2f6b4e172338bddf184d6dbee29c98853e0a0485ecee7f27b9af0b4'),
    ],
    [
        fromHex('6161616161'),
        fromHex('ed968e840d10d2d313a870bc131a4e2c311d7ad09bdf32b3418147221f51a6e2'),
    ],
    [
        fromHex('616161616161'),
        fromHex('ed02457b5c41d964dbd2f2a609d63fe1bb7528dbe55e1abf5b52c249cd735797'),
github aws / aws-sdk-js-v3 / packages / crypto-sha256-js / src / knownHashes.fixture.ts View on Github external
],
    [
        fromHex('616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('7a538607fdaab9296995929f451565bbb8142e1844117322aafd2b3d76b01aff'),
    ],
    [
        fromHex('61616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('66d34fba71f8f450f7e45598853e53bfc23bbd129027cbb131a2f4ffd7878cd0'),
    ],
    [
        fromHex('6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('16849877c6c21ef0bfa68e4f6747300ddb171b170b9f00e189edc4c2fc4db93e'),
    ],
    [
        fromHex('616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('52789e3423b72beeb898456a4f49662e46b0cbb960784c5ef4b1399d327e7c27'),
    ],
    [
        fromHex('61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('6643110c5628fff59edf76d82d5bf573bf800f16a4d65dfb1e5d6f1a46296d0b'),
    ],
    [
        fromHex('6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('11eaed932c6c6fddfc2efc394e609facf4abe814fc6180d03b14fce13a07d0e5'),
    ],
    [
        fromHex('616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('97daac0ee9998dfcad6c9c0970da5ca411c86233a944c25b47566f6a7bc1ddd5'),
    ],
    [
        fromHex('61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161'),
        fromHex('8f9bec6a62dd28ebd36d1227745592de6658b36974a3bb98a4c582f683ea6c42'),

@aws-sdk/util-hex-encoding

Converts binary buffers to and from lowercase hexadecimal encoding

Apache-2.0
Latest version published 1 year ago

Package Health Score

72 / 100
Full package analysis

Popular @aws-sdk/util-hex-encoding functions

Similar packages