Electrochemically enabled functionalization of indoles or anilines for the synthesis of hexafluoroisopropoxy indole and aniline derivatives.