Added node module dependencies into version control
Test / test (push) Successful in 9s

This commit is contained in:
2023-07-27 20:31:14 +02:00
parent 051220e2a1
commit 08bda289ec
62 changed files with 2000 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
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;