Skip to main content
. 2022 Sep 21;22(19):7169. doi: 10.3390/s22197169
Algorithm 2: Algorithm for Hybrid Data Obfuscation for Security Purposes.
Input: Pt- plaintext, C_T ☐cipher Text
Output: data is Obfuscated
Initially , Pt- plaintext with n size
Get k1
 For each k, j = 1,2… <=m
   find square (Sq)
   Nt(k) = Pt (k)*k1        // value Nt(k)
   Sq(k) = pow (Nt(k),2)     //Rotate the Sq(k)
   Get k2           //Rotate the RTN at K2 several times
   Rt(k) = rotate (Sq(k), k2+j) //Find mod for RTN by 256
   mod(k) = Rt(k)%256   //Convert mod into ASCII code
 C_T (k) ☐ASCII (mod(k))
 C_T☐ cipher text
End for