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:
parent
c0a4f6f3fd
commit
b744ed592a
30 changed files with 2628 additions and 2152 deletions
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue