package
modhex encoding/decoding used by Yubico-OTP Authentication
npm install modhexGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 1 packages.
5.4 kB
Includes dependencies.
modhex encoding/decoding used by Yubico-OTP Authentication
yarn add modhex --saveDescription: Encode Data to modhex
Syntax: data:ModhexString = encode(data:HexString|Buffer)
Arguments:
Example:
const _modex = require('modhex');
// encode hex data
const data0 = _modex.encode('5834b135dc124d38c');
// encode buffer
const mybuffer = Buffer.from('5834b135dc124d38c', 'hex');
const data1 = _modhex.encode(mybuffer);Description: Decode modhex Strings
Syntax: data:HexString|Buffer = decode(data:ModhexString, [encoding:String])
Arguments:
Example:
const _modex = require('modhex');
// decode modhex data to hex
const data0 = _modex.encode('iijbeetrkrtlghuddhdhhjdej');
// decode modhex to buffer
const data1 = _modhex.encode('iijbeetrkrtlghuddhdhhjdej', 'buffer');Please open a new issue on GitHub
modhex is OpenSource and licensed under the Terms of The MIT License