1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-07-23 15:19:41 +02:00

Editorjs checklist tool (#98)

Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
This commit is contained in:
Alexander Menshikov 2020-05-09 05:38:25 +03:00 committed by GitHub
parent c0a4f6f3fd
commit b744ed592a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 2628 additions and 2152 deletions

View file

@ -2,6 +2,7 @@ const crypto = require('crypto');
/**
* Create binary md5
*
* @param stringToHash - string to hash
* @returns {string} - binary hash of argument
*/
@ -13,7 +14,8 @@ function binaryMD5(stringToHash) {
/**
* Returns 16 random bytes in hex format
* @return {Promise<string>}
*
* @returns {Promise<string>}
*/
function random16() {
return new Promise((resolve, reject) => {
@ -29,5 +31,5 @@ function random16() {
module.exports = {
binaryMD5,
random16
random16,
};