Skip to main content
. 2020 Oct 29;20(21):6158. doi: 10.3390/s20216158
Algorithm 4:Converting a plain text into a set of blocks.
  Input: TheplaintextMandp
  Output: Setofblocks
1  Sender:obtaintheplaintextM;
2  Sender:calculatethesizeofeachblock;
3  N← ⌊192−88⌋;
4  Sender:calculatethenumberofblocks;
5  B← ⌈MN⌉;
6  Sender:dividethepalintextintoBblocksofsizeN;
7  fori=1;i<=B;i++;
8  forj=1;j<=N;j++;
9  Sender:obtaintheBi=Bi+ASCII(cj+((i−1)∗N));
10  Setofblocks←theresults