diff options
| author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2019-07-02 16:07:02 +0200 |
|---|---|---|
| committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2019-07-03 18:42:46 +0200 |
| commit | 6c512e21a981cbbad93cc0ed6ec718105876f367 (patch) | |
| tree | 8cc5107934ddce8384ef459ed26234eebb67f886 /core/ustring.h | |
| parent | a3bdb6c8d83d424da664ea8c4ee680a9b67e1b30 (diff) | |
| download | redot-engine-6c512e21a981cbbad93cc0ed6ec718105876f367.tar.gz | |
Add sha1 functions to string (using new CryptoCore)
Diffstat (limited to 'core/ustring.h')
| -rw-r--r-- | core/ustring.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/ustring.h b/core/ustring.h index a32daabb91..8a52c53238 100644 --- a/core/ustring.h +++ b/core/ustring.h @@ -305,8 +305,10 @@ public: uint32_t hash() const; /* hash the string */ uint64_t hash64() const; /* hash the string */ String md5_text() const; + String sha1_text() const; String sha256_text() const; Vector<uint8_t> md5_buffer() const; + Vector<uint8_t> sha1_buffer() const; Vector<uint8_t> sha256_buffer() const; _FORCE_INLINE_ bool empty() const { return length() == 0; } |
