wallet-core/node_modules/md5-hex/browser.js

11 lines
173 B
JavaScript
Raw Normal View History

2017-05-28 00:38:50 +02:00
'use strict';
2017-08-14 05:01:11 +02:00
const md5OMatic = require('md5-o-matic');
2017-05-28 00:38:50 +02:00
2017-08-14 05:01:11 +02:00
module.exports = input => {
2017-05-28 00:38:50 +02:00
if (Array.isArray(input)) {
input = input.join('');
}
return md5OMatic(input);
};