A novel phasor computation algorithm is presented in this paper. The real and imaginary part filters of this algorithm have identical magnitude frequency characteristic (IMFC) at all the frequencies and orthogonal phase frequency characteristic (PFC) at fundamental frequency. Considering the conditions of the same magnitude frequency characteristic (MFC) and the orthogonal PFC, the two-sample algorithm is derived. Once two-sample orthogonal filters with IMFC are obtained, the algorithm design is just to select proper shapes and lengths of windows, which determine the filtering performance and response-time, respectively. This method could be applied to design filter in any window-length, especially in short-window. Therefore, this class of phasor algorithms is suitable for EHV transmission line protection where a short-window is crucial for fast response and better operation performance. The proposed algorithm has been applied to a series of EHV relay devices by China Xuchang Relay Group.