import * as core from "https://deno.land/x/core@0.1.9/mod.ts";
Variables
v AES | AES encryption and decryption algorithm: AES-CBC encoding: base64 |
v JWT | JWT encryption and decryption algorithm: RSA-OAEP |
v RSA | RSA encryption and decryption algorithm: RSA-OAEP encoding: base64 |
Functions
Initials upper case | |
Format the number of bytes to be easily recognizable by humans | |
Format date with pattern string | |
Format template string with placeholder | |
Determine whether it is a plain object (the object created by {} or new Object) | |
Merge two arrays by the specify function. | |
Deep merge multiple objects | |
分页助手 | |
Generate a random number between [a,b] | |
Generate a random string with specified length | |
f sha1 | SHA-1 hash encryption algorithm: SHA-1 |
Strip html tags
| |
Truncate a Chinese-English mixed string of specified length A Chinese character is calculated by two characters | |
f uuid | Random UUID without '-' |