make secretbox inherit BaseKey