François De La Rochefoucauld said this quote

Perfect courage is to do without witnesses what one would be capable of doing with the world looking on.