Skip to content

MakeSalt function question #25

Open
@bladewhistle

Description

@bladewhistle

Nice license library.

But I have aquestion about the salt generation.

It seems explicitSalt and implicitSalt are all generated by MakeSalt when generation a license.

In code below:

bool MakeSalt(Salt& salt)
{
    unsigned char tmp[32] = {0};

    std::string encoded;
    EncodeBase64(tmp, 32, encoded);
    salt = encoded;
    return true;
}

the salt based64 with empty string alwayas be 'AAAAAAAAAAAAA...', which will cause all salt be same. It will not be safe for usage. Is it necessary to customize the salt value with any interface?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions