Have a personal or library account? Click to login
Fermat Encoding in S-Box for Secured Encryption Cover
Open Access
|Feb 2025

Figures & Tables

Figure 1.

Encryption of the S-box

Figure 2.

Decryption of the S-box

Comparison of S-boxes

Performance indexAES S-BoxAffine-Power-AffineProposed Scheme
Balance criteriabalancebalancebalance
Differential uniformity(F)444
Non-zero linear structurenonenonenone
Number of terms in S-box algebraic expression9255256
Iterative periodless than 88less than 88256

Decrypted S-Box

198553721212402261973
1841709114212710915621740
58203302392531286167181
6814596114131248927234
6320622045119134148101176
658316223122424532209
195501041531391221759476
1891867589168125140158111
5319621439242317224165
84701839814712911242219
201562372814255132117103
15067178160811125023225
204614722215510612013792
1731917820229247621134
481936220722144249826
2351776482163118135149100
3320819451230235244174
95771881051521381230241
227181995436213143126108
15772185171903123825213
21641592021449711513087
166180696617916180133116
102151205604622310251233
249317219079154107121136
2103549192212282467124
14115911018774881692432
16225521972153899146128
11316485711822362915254
4321820057

Final Decrypted S-Box

11000110,00110111,00100101,11010100,00000001,
11110000,11100010,00010011,01001001,10111000,
10101010,01011011,10001110,01111111,01101101,
10011100,11011001,00101000,00111010,11001011,
00011110,11101111,11111101,00001100,01010110,
10100111,10110101,01000100,10010001,01100000,
01110010,10000011,11111000,00001001,00011011,
11101010,00111111,11001110,11011100,00101101,
01110111,10000110,10010100,01100101,10110000,
01000001,01010011,10100010,11100111,00010110,
00000100,11110101,00100000,11010001,11000011,
00110010,01101000,10011001,10001011,01111010,
10101111,01011110,01001100,10111101,10111010,
01001011,01011001,10101000,01111101,10001100,
10011110,01101111,00110101,11000100,11010110,
00100111,11110010,00000011,00010001,11100000,
10100101,01010100,01000110,10110111,01100010,
10010011,10000001,01110000,00101010,11011011,
11001001,00111000,11101101,00011100,00001110,
11111111,10000100,01110101,01100111,10010110,
01000011,10110010,10100000,01010001,00001011,
11111010,11101000,00011001,11001100,00111101,
00101111,11011110,10011011,01101010,01111000,
10001001,01011100,10101101,10111111,01001110,
00010100,11100101,11110111,00000110,11010011,
00100010,00110000,11000001,00111110,11001111,
11011101,00101100,11111001,00001000,00011010,
11101011,10110001,01000000,01010010,10100011,
01110110,10000111,10010101,01100100,00100001,
11010000,11000010,00110011,11100110,00010111,
00000101,11110100,10101110,01011111,01001101,
10111100,01101001,10011000,10001010,01111011,
00000000,11110001,11100011,00010010,11000111,
00110110,00100100,11010101,10001111,01111110,
01101100,10011101,01001000,10111001,10101011,
01011010,00011111,11101110,11111100,00001101,
11011000,00101001,00111011,11001010,10010000,
01100001,01110011,10000010,01010111,10100110,
10110100,01000101,01000010,10110011,10100001,
01010000,10000101,01110100,01100110,10010111,
11001101,00111100,00101110,11011111,00001010,
11111011,11101001,00011000,01011101,10101100,
10111110,01001111,10011010,01101011,01111001,
10001000,11010010,00100011,00110001,11000000,
00010101,11100100,11110110,00000111,01111100,
10001101,10011111,01101110,10111011,01001010,
01011000,10101001,11110011,00000010,00010000,
11100001,00110100,11000101,11010111,00100110,
01100011,10010010,10000000,01110001,10100100,
01010101,01000111,10110110,11101100,00011101,
00001111,11111110,00101011,11011010,11001000,
00111001

Fermat encoding using backward method

Index = 0Index = 1Index = 2
241 - 3 = 23818 - 3 = 15241 - 3 = 238
238 - 5 = 23315 - 5 = 10238 - 5 = 233
233 - 17 = 21610 - 17 = 249233 - 17 = 216
216 - 1 = 215249 - 1 = 248216 - 1 = 215
215 - 1 = 214248 - 1 = 247215 - 1 = 214
214 - 1 = 213247 - 1 = 246214 - 1 = 213
213 - 1 = 212246 - 1 = 245213 - 1 = 212
212 - 1 = 211245 - 1 = 244212 - 1 = 211

Decryption using Fermat encoding in forward method

Index = 0Index = 1Index = 2
211 + 3 = 214244 + 3 = 247211 + 3 = 214
214 + 5 = 219247 + 5 = 252214 + 5 = 219
219 + 17 = 236252 + 17 = 13219 + 17 = 236
236 + 1 = 23713 + 1 = 14236 + 1 = 237
237 + 1 = 23814 + 1 = 15237 + 1 = 238
238 + 1 = 23915 + 1 = 16238 + 1 = 239
239 + 1 = 24016 + 1 = 17239 + 1 = 240
240 + 1 = 24117 + 1 = 18240 + 1 = 241

S-box Generation

11110001,00010010,11110001,11010101,11110001,
00010010,11110001,01011010,11110001,00010010,
11110001,11010101,11110001,00010010,11110001,
01000101,11110001,00010010,11110001,11010101,
11110001,00010010,11110001,01011010,11110001,
00010010,11110001,11010101,11110001,00010010,
11110001,01111011,11110001,00010010,11110001,
11010101,11110001,00010010,11110001,01011010,
11110001,00010010,11110001,11010101,11110001,
00010010,11110001,01000101,11110001,00010010,
11110001,11010101,11110001,00010010,11110001,
01011010,11110001,00010010,11110001,11010101,
11110001,00010010,11110001,00000111,11110001,
00010010,11110001,11010101,11110001,00010010,
11110001,01011010,11110001,00010010,11110001,
11010101,11110001,00010010,11110001,01000101,
11110001,00010010,11110001,11010101,11110001,
00010010,11110001,01011010,11110001,00010010,
11110001,11010101,11110001,00010010,11110001,
01111011,11110001,00010010,11110001,11010101,
11110001,00010010,11110001,01011010,11110001,
00010010,11110001,11010101,11110001,00010010,
11110001,01000101,11110001,00010010,11110001,
11010101,11110001,00010010,11110001,01011010,
11110001,00010010,11110001,11010101,11110001,
00010010,11110001,11111111,11110001,00010010,
11110001,11010101,11110001,00010010,11110001,
01011010,11110001,00010010,11110001,11010101,
11110001,00010010,11110001,01000101,11110001,
00010010,11110001,11010101,11110001,00010010,
11110001,01011010,11110001,00010010,11110001,
11010101,11110001,00010010,11110001,01111011,
11110001,00010010,11110001,11010101,11110001,
00010010,11110001,01011010,11110001,00010010,
11110001,11010101,11110001,00010010,11110001,
01000101,11110001,00010010,11110001,11010101,
11110001,00010010,11110001,01011010,11110001,
00010010,11110001,11010101,11110001,00010010,
11110001,00000111,11110001,00010010,11110001,
11010101,11110001,00010010,11110001,01011010,
11110001,00010010,11110001,11010101,11110001,
00010010,11110001,01000101,11110001,00010010,
11110001,11010101,11110001,00010010,11110001,
01011010,11110001,00010010,11110001,11010101,
11110001,00010010,11110001,01111011,11110001,
00010010,11110001,11010101,11110001,00010010,
11110001,01011010,11110001,00010010,11110001,
11010101,11110001,00010010,11110001,01000101,
11110001,00010010,11110001,11010101,11110001,
00010010,11110001,01011010,11110001,00010010,
11110001,11010101,11110001,00010010,11110001,
11001000

Encrypted S-Box

21124421118321124421160211
24421118321124421139211244
21118321124421160211244211
18321124421193211244211183
21124421160211244211183211
24421139211244211183211244
21160211244211183211244211
23321124421118321124421160
21124421118321124421139211
24421118321124421160211244
21118321124421193211244211
18321124421160211244211183
21124421139211244211183211
24421160211244211183211244
211225211244211183211244211
6021124421118321124421139
21124421118321124421160211
24421118321124421193211244
21118321124421160211244211
18321124421139211244211183
21124421160211244211183211
244211233211244211183211244
21160211244211183211244211
3921124421118321124421160
21124421118321124421193211
24421118321124421160211244
21118321124421139211244211
18321124421160211244211183
211244211170
DOI: https://doi.org/10.2478/ias-2024-0018 | Journal eISSN: 1554-1029 | Journal ISSN: 1554-1010
Language: English
Page range: 266 - 283
Published on: Feb 21, 2025
In partnership with: Paradigm Publishing Services
Publication frequency: 6 issues per year

© 2025 Md. Hasanujjaman, Partha Sarathi Goswami, published by Cerebration Science Publishing Co., Limited
This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 License.