mirror of
https://github.com/reactivecircus/android-emulator-runner.git
synced 2026-09-02 02:29:33 +00:00
50986b1464
* main: Prepare for release 2.27.0. Clean up action description. Update dependencies (#282) Update Readme & Provide current context on Hardware Acceleration on Github (#279) Pre Emulator Launch Script (#247) Update to Node 16 (#276)
13 lines
281 B
JavaScript
13 lines
281 B
JavaScript
import crypto from 'crypto';
|
|
|
|
function md5(bytes) {
|
|
if (Array.isArray(bytes)) {
|
|
bytes = Buffer.from(bytes);
|
|
} else if (typeof bytes === 'string') {
|
|
bytes = Buffer.from(bytes, 'utf8');
|
|
}
|
|
|
|
return crypto.createHash('md5').update(bytes).digest();
|
|
}
|
|
|
|
export default md5; |