secret base key to string