View full-text article in PMC Sensors (Basel). 2022 Jun 8;22(12):4359. doi: 10.3390/s22124359 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Algorithm 2. Key Generation of Permutation Process Input: Equation of plane ax+by+cz=d,a,b,c,d∈ℜ.Output: Orthogonal matrix K2. 1. Let the orthogonal line O be spanned by the unit vector tt=(a,b,c)a2+b2+c2, from the expression Zw=w−2t〈w,t〉, where 〈w,t〉 is the inner product of w and t. 2. For w={w1, w2,w3,…,wm}∈Rm be the basis of O. The basis vectors for m=3 are w1=[w11,w12,w13]=[1,0,0]w2=[w21,w22,w23]=[0,1,0]w3=[w31,w32,w33]=[0,0,1]. 3. The orthogonal key matrix K2 will be K2=[zw11zw12zw13zw21zw22zw23zw31zw32zw33].