Is it possible to generate License key for testing purpose

Hi All,
I would like to release some test plugin not through the marketplace and I would like to know if it there is a way to generate a license key valid for specific number of users and time?

somthing like that but more flexible
https://developer.atlassian.com/platform/marketplace/timebomb-licenses-for-testing-server-apps/

thanks,
Dar