add shorthash to PICrypt

git-svn-id: svn://db.shs.com.ru/pip@130 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
2015-05-15 12:19:14 +00:00
parent b2c9023deb
commit a4fadea95f
2 changed files with 19 additions and 0 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 short hash from string "s", may be used for hash table
static ullong shorthash(const PIString & s, PIByteArray key = PIByteArray());
//! Generate random key
static PIByteArray generateKey();