#define HASHSIZE 20
void gethash(hashT &hash) const
{
    wchar_t a[64];
    swprintf_s(a, 64, L"%s/%s/%I64u", domainW.c_str(), bbsnameW.c_str(), _wcstoui64(datnameW.c_str(), NULL, 10));
    byte b[HASHSIZE];
    CryptoPP::SHA1().CalculateDigest(b, (byte*)(a), wcslen(a)*sizeof(wchar_t));
    hash.assign(b, HASHSIZE);
}