git-svn-id: svn://db.shs.com.ru/pip@625 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2018-09-12 08:44:44 +00:00
parent 9b994d1ffd
commit d534225a8c
3 changed files with 34 additions and 18 deletions

View File

@@ -54,6 +54,9 @@ public:
//! Generate hash from keyphrase "secret", may be used as a key for encryption
static PIByteArray hash(const PIString & secret);
//! Generate hash from bytearray
static PIByteArray hash(const PIByteArray & data);
//! Generate short hash from string "s", may be used for hash table
static ullong shorthash(const PIString & s, PIByteArray key = PIByteArray());