Phase-Invariant Signature Algorithm