Expand description
Dev deps: some useful macros.
Modules§
- Base64 related macros
- Hash related macros
- Random number / string generation utilities
- useful
StringExtutilities forcrate::str_concatmacros
Macros§
- Base64 decode
- Base64 encode
- Base64 encode with
bytes::Bytesreturned - Calculate Hash.
- A helper macro to get string from hash result
- Init
tracing_subscriberwith default settings. - Calculate MD5 hash.
- Faster way to get current timestamp other than
chrono::Local::now().timestamp(), 12x faster on my machine. - Generate a random string by choosing ones from given candidates.
- Generate random string.
- Generate random string base on xor-shift algorithm.
- Calc SHA256 hash.
- Calculate SHA384 hash.
- Calculate SHA512 hash.
- Create a
SliceSep. - Helper macro for creating a wrapper type.