forked from iphkwan/SimpleRSA
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsample.txt
288 lines (240 loc) · 26.5 KB
/
sample.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
********密钥生成(RSA-2048)********
公钥e:
E1E08B7AE438538EF05906AF00D3D41FAE414E03DAF3CFE7A87CF886A492C462965F7AF86921D6B9E7E2327311E8503B4FED7EB0C4C95C6115D8FAA0B46030465E599D1CC7BBD45A3DB2FDEAA66DBC1A50E4231C9520AB3F5413E2AC1F458FB106FD6F2832DFCB2AB7DC52EBD008BB133E56DE4DCE76E9FA010762948570D0BF
公钥n:
62CE67BBD3F5800346A4DF1A2FA8BB701FB1B0F43B0B91F8862427A06AB931926AF1F8A61F20ABF4E28732EAEBEAE8D6FB6764B896EA6F0863838BD02481E314E8B1E48A9D44D6E705DAE19767D89351C6D29C6333E4B7419ADEB4DBCD2DE906ED3093E65FC436C78E100111D792E695C121C534C1D50C724EAA4E8C6BBB27E7904E0AEFF83E2A83E4C08E2C4A7A2121521E2A3EE098CB1671B54648AE4EBA475EEEA9C07BCD8F29A2155B7DD187786D69768C1A9E17C7F66BCDA3DDE91B610149D2AC30B524C8B4C5704B920CAE5DE12946B11366608BC83D339C941594B77E1733866BCF325B40A15551DDE5F763E59CA099D5F90FDE871C87C39A2D6F1A95
私钥d:
2A839B59FF98AC84BE604DA076F1EB63DCF529613D6F2F5DAB00B3A4E8761AFB3D982466F3767ED18D61FD8EAF484A043AF19CF5CA9A74C3D6106316E7B323798121BEB4E29FB1EABDF2787F9477C2B63D3DAE740E0ED2EDB54F33284E31637A62CF6DC0E52D6C4F2CE47A92078405401395A52FD60DF2C8AD8F59817C9DD1B760C17FF088D1C771C94B869A7899F921A50C7E73C9152BA32AB781C783DB0C6C879FECFAEAF78286A4ACA7491E84C5D25D7FB9D9DE34FCE97037E7112A423E9A16086888FAA61A194574FE055CCE59C970C16A57FA1CB2924596344C0D4A3CDA1D34CFCE9663DF64D2F478526563B0E3BD914F094FEFC3419D6AB05646B99CFF
p = 89E9A03256BA0BEF13B1E90FF3FC58550105E101036BB97C60F32FAC10A5C779E9BF2AF026601106F8942D08F91AFEE1019C4AA9C4BBAF82C4EFF8B560FA84C077EA2B18EE6151751931038BAF8FBF092B02B73C476E694DDDF12D2E36BA857136E4E0144849BA20CCA694AC9BF30ECA71C7D39701625804A3FA7BC8CCD2DF3D
q = B768B0EA288526B6F9DA772E5CAB441DCFF011FED077FA9DDF9CBFBBA7D3702EA66D9C8DCA85D7F93D42415261F5C8722BCF80341C360C2D2C49D7B0CDA7A89BB3ADFFA7E138D3A745A7D0E07E729EF832006BB2E6DC6DC7DDC2D39D22729A0493BA97408DADB6E3D110F932749B722EFFCB5EA2727EBBE75A751A0E4EBF5E39
********密钥生成(RSA-2048)********
公钥e:
AFE49CA5FB4783888C6D0138DB2EA960D98F2EB05C9CB054280FB20E8175D762703B897887DD5482116F6DB62F2E71E27B009BB2A5E024324D12614353FE04A66100EE11FDDD5839D5B2CDA8E4D28772A6A56B72D5E6BBCED714A762B831256AC6004584F4881215565D4362A0C46205E6C39DC496E529D290550F4288286C4D
公钥n:
8188452C61805FF764FAB7845C74313EBC0990BBD04AC8AEA9BEBC8795F25ABA76ECF66E35AC4797FC03463690E1905F07B6CC3CEA140E9425073DDADE31B4E5797625942A7C68B51C0B8C28A0B97CD2A391C9B7A42F6A17C8F9CB821169847E1D38F55197D4114945712C932532DC407576D2ACA6B15CC18D5BAA7F5F940D556AD93F401F981979CFE8C2B38995C4CFBC64F02AEE290E886B4BDD3EBD57F370F8D98C8BAEDB60F0678A31A94C5C287FF420E1C4DC09EB86AEF09A88BE187982BB40853E5FAB6B04F30E9E23D48AB3A7CFE49EAB5D302CA37433D42FA6B908A9ED4D8173B163A500B3513366B38BC9FD3956051EC526F9557CE7BC1E2271EDC9
私钥d:
DF12B46D4CACED60D2E39234432A72743CD8C3BA8E5DE1AA2F7545B468FA1507D8510ADCC143C8381B4C653CCA9F9F4EB886C3975697AFB344563F47291F3338EEB7DBCBF778423D30733C68B84EDC316D7427B989E76D17BD21CD33715F00B5C45C94E4020330A729231C9126F8C2A1F8BE9CF0CE03B098D494278E4A637D3ED3A5485434577875E05B699963DC21D117782C8ACC940644E90EEC214AABC5E69F006937A481295DC2134C78D6D73F8493D387F5A2C97B93E377FCC13E4890C8028337F1C3780C50E7FBF2A32EA9A03297EF77D2B15BF20B5DE48E0261A9CF7D982A1841225B1B78755E1BFC416C9881BEA9A74970BD08324478939F95FE985
********密钥生成(RSA-2048)********
公钥e:
84CDC278F173E4C139AC9BA1F5B2992C47F79DD85951DB5F9A164C34DEFADCB0500BEBA5AE4DD477599F244DAD308AADFDA45146CE529341971CB1A4112AB07B6C77C8E39022EAAEF3D15459D0E860D734B69EE3E2046DFE5298D9C6FC972660D3FFBCE641319561BA45EC54BEC1B2524927776BDFD46EE229BBE596E7C74DED
公钥n:
CAA886066B57007F931C999162224D36546EAEBAF72DE6A6BF07E091ED43885A096492CF0A911D0019F3903CF09503DDC55C03C138205A425D8A52278A1BA56A6123E410A32C2468C7CB8F79022968013F8E4BABFC655D1B216D1192762B1D6591CEA6C47B8DBE65F771DC4460E854A287C8FE36F1121BFBF998B84D928C37C47A0F161C74F428A23F0B01BD15CB6D545EFDB7A7475473221D9B6BA697CA6D16642D3FCF727D68C1B32940600B0FCD87A71A003E436A29EE4DFB673546472E7DF72BF909D0A1A2E8270A8663C045D4DB1247E7A189AB6802E6D91EEF2A5A894EACA0337DB6AA8DAF5A6766D0C259DDF6338D8AB856CB6933E187745BE43C5CCB
私钥d:
1BCF757D631F0DB87401BF6141756A11666D738C62CC033B1E5E41822DB1CB7F5DD666650F77EB61217DEBE5BE7CF0F86CFFFEC8EC3A37C9F4AA1310299515E2B5A27D2D1296533FBB2B08E97502CA3D7D12611ACEF6B57BB2B61BAAF81257C175ED8B2AF8F346C55D9734C48863DDD4D027100B037912B79E9992B4BF13C6DA5DF1C1B55FF7637899B23F6786ED2E560FB117B61910B7DC930A1A3181E523D9DE7659A34B3C978F52638F071E2293C24FE70D9B3C2030E5FBBD604CAD3F8040C672024B63E6D9811EE1433E94C55CCA1DB9AAA9875726E998178B2092DCE24E6728C7244E2EB6FF5ACF0EC6663429ED0FBBF95AA392FA7AA75060CB23367E25
Generating test message...
test message: BE22855AD206A47D29BD1CE6455870F3AB8C6EB593B6BF462B28D16677F5DE8C408AB25CE4B556E4705D5C85A3FABAFD44EC504AC7383AF89158808C1EF890B073D8B40B3CE14F5F4AEF4B41BAC1063B1A8D98405DF2A98868F4FAD9AC379E712DA0F9BF2132B1D4759EEC2D31D5F03A074067E6C60A0E0E23FB36B17FEF7D9E794A31ECC8A256E9D2AC913CF9ECC68C3995345CA031F5F3F4146FA13F8C08403A9D21FC8BF9E17A9987FA7984509056FC43B76253139B302F231771E341A17871C6E8060C6457D31BF93F3A8F5CEDC0FA159A8ECC005AEE114BDA8BF90FB88C4E9556142FD445274A37ABFCA1246436609AB0EB476AFCBA9B4B5B529D7A1A5D
after encrypt: 40669CFDF5CA082D94751C2A734837AEACA0804938ACB0C39547A4A877A3D7571B1AA5D3712EE2346EA270B47F45D5531C7761A147F71DC97264B66595DF04B6B044CDE1CE7E13B270CAF0705E651C21D8E34EB00C2EB6CEF65F776FBF90B31DD647E085B04ABE11C506C276411A4C955DF06FD6037A44AD86738DE38A360B38F5FDA07E2C8712696D93B162D09ADC5CD5515BCE7E3251A9EC839B04F8DE10281A73558DF007656DEFD6F9D12C8CF20271629B56B4A8F22DE9AFF92CE6CEA0EA49560F20C07A72C03EAF1F461A1FCC992704CAAC13C700C9053EC0068D4099C10B3C41B1E8B3BF57233BF8DC790EEF0C06BF58F586F395264228DDD84E5C559A
after decrypt: BE22855AD206A47D29BD1CE6455870F3AB8C6EB593B6BF462B28D16677F5DE8C408AB25CE4B556E4705D5C85A3FABAFD44EC504AC7383AF89158808C1EF890B073D8B40B3CE14F5F4AEF4B41BAC1063B1A8D98405DF2A98868F4FAD9AC379E712DA0F9BF2132B1D4759EEC2D31D5F03A074067E6C60A0E0E23FB36B17FEF7D9E794A31ECC8A256E9D2AC913CF9ECC68C3995345CA031F5F3F4146FA13F8C08403A9D21FC8BF9E17A9987FA7984509056FC43B76253139B302F231771E341A17871C6E8060C6457D31BF93F3A8F5CEDC0FA159A8ECC005AEE114BDA8BF90FB88C4E9556142FD445274A37ABFCA1246436609AB0EB476AFCBA9B4B5B529D7A1A5D
********密钥生成(RSA-1024)********
公钥e:
92534F70144A397F8E319CB3A7B0A0B1B147D71624905496563AC09EB34416599472F9B0752513DA8AFB9F616E7A42409E0EBDEF64CFF67FE15945D9C9FEFDFB
公钥n:
D9AA0B3879C08D517DA6D06964FB75160D640107B3D840F0A7A9DF63481E22D1078DA38A26E463DCD0D8F1A8C553FEE005EDD3637B34FF9E444B7A3F9011CB7850BB8D368907DCA712F4627C7E61A94BA934AB3191FCA08366D738E2E853C041AE3C03C7C46C9F5B92A4F896629EA6CA1AE0C3BE7978C605155F08DDF7594CD3
私钥d:
348B8B35B82D3A61C1147B3A57432D40EED96ABEF892EB141C638D04EB14CF15C746F906C4F536E350DA233B46BF4232E2E190BFCF5BC7E2E2B3DA8726F992E251493A799549D90CDD6179E4CCF06E933A596FE71AC165D3500D91D6F7C158F152244630497ED73A3FDEF1AED92531C37D39DCB551B1296975D973B41B4CF723
Generating test message...
test message: A68FD91F645A45B4DB2F78E23ED178FFFD0CF69F0193F83FDE14A1360B1D10C89762EFE69E5869F2C9BEBE52666DD6A81FF53948414992579F318271AB910756E837631A10705F3A630735D9F5D8A90073E038966EC571D9D387D9B80804F51A5D92CC93F225B02C820CA0EBB4C73E5F4670F56858424900835D2288CC17F9A2
after encrypt: 9FF84C3BDB7988A962FD348750E944FD590AB3F8B1E289EA481ABF2BAB7B1D7FCD547D1D8A3D8F9BE03B0628183E33417C7C288131E60FDE24E4F6D9B85301ED2438028E0213FDCEA8DB2803C1680A82D59B70E4C6256D1A402CDDD4E067AB8103359DC968A6D50955AFDF2719552B7D51C03B3048ACE41A9BABFA3D395ACF8D
after decrypt: A68FD91F645A45B4DB2F78E23ED178FFFD0CF69F0193F83FDE14A1360B1D10C89762EFE69E5869F2C9BEBE52666DD6A81FF53948414992579F318271AB910756E837631A10705F3A630735D9F5D8A90073E038966EC571D9D387D9B80804F51A5D92CC93F225B02C820CA0EBB4C73E5F4670F56858424900835D2288CC17F9A2
********密钥生成(RSA-768)********
公钥e:
F8AE063CD67047F44EE5BB23A9FE26534C12A84342809FC5B6FB8FAED7C31BA0D3F2A250E84324E2DF34156466719C2B
公钥n:
AB7AFFB2F11A14E76757ECEB2B879DF87E714919480FB9A3EE3734A5C69D7A4E4C60B674A4B5FBB4CF2B9DAE20579158838766E643875A6F08BCB2EFE806BA98A0492252BD9AA48FCDA4247CBFF3B96C62AF981396A3F1B61ED9316C2A1E4553
私钥d:
29A294DC7D66B5F36BBA0294065F5A0E6390F53EC95C89B19054CEBE4322B73DBB3A9F39468B34A1C157138C9101520F08BD795FC3ED87A25FE408754CC8FF60087C819DAFD91BC6D4CDBA0CCA1D1D7E3045EA6D1A0E1FBD1285F4396F123353
Generating test message...
test message: 8A2D3C7A01B5E00B42FD513DC2FA06CC44176B973E8F85CE02374A49396D024DE19F8EF07D195FD4CE4E938F67810281A543835C6DB850E7F30199E53DDCFF132402E43BD9BCA55917904E4486288861C89D12D7DF9ED36499547D5A5B964235
after encrypt: 720D6FD7DFB0E1B71115B23301FD89546DFF124E33ED9B3F84ED4E0FB3374A89801C5BFB37E9FEAB749C723454B32A6ECE481CF5C26C7169980C6565A2F06EE6680F459029C514C011FA90A6E2B4D0CC9EAB37C41CDAF104C4A6A41DCA9F6FC6
after decrypt: 8A2D3C7A01B5E00B42FD513DC2FA06CC44176B973E8F85CE02374A49396D024DE19F8EF07D195FD4CE4E938F67810281A543835C6DB850E7F30199E53DDCFF132402E43BD9BCA55917904E4486288861C89D12D7DF9ED36499547D5A5B964235
********密钥生成(RSA-512)********
公钥e:
BBE574A3028D32FF6CC64BDBBF22C9A9F818D25DABD52F1205D57884C3124743
公钥n:
F08D035BB07A47CCFFE0D0CB65B69E9DBDFBC1D22248610ABB9FFF9608F9B7A8C8374A008605C7F25C920620C811655D1DFB878A1FA746E37041241EB75B22F7
私钥d:
18AA5C3A538525EB44E0B4213A016FDB0ABACA879661B5C6C13AC6684FAB5DEE10D5C5AF720C6BFD6C6B4AF7FCB9C6BF9283BAB84861738C1DA4A92565F6DADB
Generating test message...
test message: ECC2DF7C2771214EF9AFA865682B8CA5FA4181809CFD3304FDB000E4E32F8954CC51C4681F86EB08FF25ACDCDC7BBCB60DFC651D25B099AB275713AFB920E56B
after encrypt: 2469E877097FC1C21745CA8BEAE30EFF4FF005A98DD294377A07EC73B8159A42B6CC48A6E9F05C2F78FF035C56EFF3A14099372600CEA3781E129F200C67AB2E
after decrypt: ECC2DF7C2771214EF9AFA865682B8CA5FA4181809CFD3304FDB000E4E32F8954CC51C4681F86EB08FF25ACDCDC7BBCB60DFC651D25B099AB275713AFB920E56B
------------OAEP_SAMPLE(m = 512, k = 256)---------------
the msg is: E9166E8AE41980401511773929693BCD98B191F755E92373F0F46266721CE2668A246673DEDF9A7F9727696B248779931DD1D490F4F6DD37375E195A608FE1B7
the encode random number is A7735FBC984975CF97CF232163F831FB210186324D51E474CD33006C81602C28
encoded msg: 2CB4045DF46826CAF064B5076BC6E560594F6A2B238864D486D6622E8C5CD5A9170AACE7A918B6C51A62778BFA2F693A02D156813039811B73B0E681E05005AF533067D4E6C627AF3B02CA27553B0CA801748557E89F94A89924C3042E2EE77E
the decode random number is A7735FBC984975CF97CF232163F831FB210186324D51E474CD33006C81602C28
decoded msg: E9166E8AE41980401511773929693BCD98B191F755E92373F0F46266721CE2668A246673DEDF9A7F9727696B248779931DD1D490F4F6DD37375E195A608FE1B7
------------OAEP_SAMPLE(m = 256, k = 128)---------------
the msg is: CCEF5DDA2944FAAF02B1EA16D2472618D08A23884AB589358FB98EC16C3050B0
the encode random number is 8F02ED85428DCE2626CB35FEA452F8DE
encoded msg: 3913EB23AA4D8E94C63C334215DB8973558B870B74CECCD792009D94F001F8FA4A3573F282EB508DCD6467E1C9764B36
the decode random number is 8F02ED85428DCE2626CB35FEA452F8DE
decoded msg: CCEF5DDA2944FAAF02B1EA16D2472618D08A23884AB589358FB98EC16C3050B0
------------OAEP_SAMPLE(m = 768, k = 256)---------------
the msg is: 857DF0DFE7DB33FB119B8DE6A55FDBBCB14AB7C01549FF5904E09A09C7F63B7F9F486932DC850B695E89CCDAF3196A01D9280543B201445B7C3C0BB8B2C35AA74F5A6D68092D3EE8AEEBD3A59F479375516E6165B274CE7C807E943A9C653028
the encode random number is A4863C8F772C197D4BF70ECD26BDAC4C8EB1C1F52D75F8474BAAA85453BF69C7
encoded msg: 4279D82A421322529CC186909E76EC3445943699DCEF50DC89D3AA6E5ADC75FA60B796CD237AF496A17633250CE695FE26D7FABC4DFEBBA483C3F4474D3CA558D32786ED2436C9C397B929E17D2CF74ED4FEDE36A9586641B918F3F6AD0FE8953AEDA80ACCEAAB9CB9A7C4939B2E41E06F028EC08BAFDCAE94D8C6BB09227F8D
the decode random number is A4863C8F772C197D4BF70ECD26BDAC4C8EB1C1F52D75F8474BAAA85453BF69C7
decoded msg: 857DF0DFE7DB33FB119B8DE6A55FDBBCB14AB7C01549FF5904E09A09C7F63B7F9F486932DC850B695E89CCDAF3196A01D9280543B201445B7C3C0BB8B2C35AA74F5A6D68092D3EE8AEEBD3A59F479375516E6165B274CE7C807E943A9C653028
------------OAEP_SAMPLE(m = 1024, k = 512)---------------
the msg is: 8BAF79FC26F5036DA7311CE1833EAD3B8F75804C14378DF433E0FD4C701C16566A9333DFA8450CD35B4A918AF35170A257DD379C96861DEA1928ED7C4869A0D87384E6297146FB15338F158D5DB3DB1D9082EDA21C82098CACF4B806B852A01DA66EB1005D5B75E5158A393E12D3BC469D4A468976BCEAB0921849DFA8C3592D
the encode random number is D42099134B7FFC1489D688CE06FB5E5EAF24D6A2D12EF68159C868652B1B913594C3834F9A2035276E976EABB9B84FC6B554677343EC3FCA10135F8C671A8A7B
encoded msg: 1390681E54A0548AA9AA139587933950BAB2E48F75FCD6F5A290B2F5BDF108708DEE31AABB852AE91050DAB8227EFA268E45723EEBCE376606CA878BF27AAC8A3F9B6ED8486C50E6B4C292375FE511280A615FC3AC67A40C644C9FDA5EA42F0ED5D0303AD4BB66F830071CA77A447904F18664584818FFF69DE97CA475CADF04754C122D5836009C959A1F707835F9EDEFE85FF683C9A3EDEDC3F06DE55B9A42D77327AFB6EABCB0CF10CAD11B6D512DC5B6AFB1F9D3FC7EEB6EE37EB0DAC3B3
the decode random number is D42099134B7FFC1489D688CE06FB5E5EAF24D6A2D12EF68159C868652B1B913594C3834F9A2035276E976EABB9B84FC6B554677343EC3FCA10135F8C671A8A7B
decoded msg: 8BAF79FC26F5036DA7311CE1833EAD3B8F75804C14378DF433E0FD4C701C16566A9333DFA8450CD35B4A918AF35170A257DD379C96861DEA1928ED7C4869A0D87384E6297146FB15338F158D5DB3DB1D9082EDA21C82098CACF4B806B852A01DA66EB1005D5B75E5158A393E12D3BC469D4A468976BCEAB0921849DFA8C3592D
-------------------example_demo---------------------
Please input the origin massage:
Hello world!!!
Please choose the RSA model(512, 768, 1024):
512
string to BigInt = 48656C6C6F20776F726C642100002121
BigInt to string: Hello world!!!
the encode random number is 719
encoded msg: 5EE0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002432B63637903BB7B9363210800011EB2D8
--------------------encode-----------------------
4E6626C0C9A82946FA78CA055AB41167F286B99C20BABA2B02584EE162584B0DCADC768875FF5DC0196F818A221CC2893526328EDF64A06C65E1803D2952EB65
-------------------------------------------------
the decode random number is 719
decoded msg: 48656C6C6F20776F726C642100002121
BigInt to string: Hello world!!!
--------------------decode-----------------------
Hello world!!!
-------------------------------------------------
-------------------example_demo---------------------
Please input the origin massage:
I am the king of the world!!!
Please choose the RSA model(512, 768, 1024):
768
string to BigInt = 4920616D20746865206B696E67206F662074686520776F726C64212100000021
BigInt to string: I am the king of the world!!!
the encode random number is E3A9714754BA8F19
encoded msg: 5E98D0C2CC698508FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFDB6FCF496FC5CBCD6FCA4B48CC6FC84CEFC5CBCD6FC44846E681870E19CB3D6B532D07EB4CBD6EC07
--------------------encode-----------------------
8CEAEB2D9C4AC4867720F20BAAF54C0DD873815111C429547FA248178850EC27730BDD2535AAA2B8C60DD1D7D1925F242CCCD15801EDA37A4B70D6110A1F8A99F38EB52E599CB7C35F7786650E136BB6EFD2812BD3856D49EDF4BB79BF3F4B13
-------------------------------------------------
the decode random number is E3A9714754BA8F19
decoded msg: 4920616D20746865206B696E67206F662074686520776F726C64212100000021
BigInt to string: I am the king of the world!!!
--------------------decode-----------------------
I am the king of the world!!!
-------------------------------------------------
-------------------example_demo---------------------
Please input the origin massage:
Harry Potter is a series of seven fantasy novels written by the British author J. K. Rowling.
Please choose the RSA model(512, 768, 1024):
1024
string to BigInt = 486172727920506F74746572206973206120736572696573206F6620736576656E2066616E74617379206E6F76656C73207772697474656E20627920746865204272697469736820617574686F72204A2E204B2E20526F776C696E670000002E
BigInt to string: Harry Potter is a series of seven fantasy novels written by the British author J. K. Rowling.
the encode random number is B1E963B163A9714754BA8F19
encoded msg: 6F58DE90DE98D0C2CC698508FFFFFFFFFDBCF46C6C36FD7C845C5CD46EFCB466FCF6FC64D46CB4D466FC84CEFC64D44CD48EFCCCF48C5CF46436FC8C844CD49C66FC446CB45C5CD48EFCEC36FC5CBCD6FDEC6CB45CB464BEFCF4545CBC846EFDAE8EFDA68D87AA70C268720AD19CB3D6CF39A3C695E86CA50E1F78E4F30B8922
--------------------encode-----------------------
A5B98DED1B7EB3C1381A3AD4A50F1777C5FA0F119BA40D8BAF792FB07DEED5E319AEC48ABDEEDB3F4F5F1483C7AA13F2D958E562A71D0AD55BEC6108045459B806DE3701B0EACFEC99A02E78570EACE0D61FBDD5A231F444022F94DAB1E87E42FA974DF9D1B6D6103E06916E6509458E2B9E1A12C38EE6B20283E5F553D45182
-------------------------------------------------
the decode random number is B1E963B163A9714754BA8F19
decoded msg: 486172727920506F74746572206973206120736572696573206F6620736576656E2066616E74617379206E6F76656C73207772697474656E20627920746865204272697469736820617574686F72204A2E204B2E20526F776C696E670000002E
BigInt to string: Harry Potter is a series of seven fantasy novels written by the British author J. K. Rowling.
--------------------decode-----------------------
Harry Potter is a series of seven fantasy novels written by the British author J. K. Rowling.
-------------------------------------------------
-------------------example_demo---------------------
Please input the origin massage:
Hello RSA-2048!!!
Please choose the RSA model(512, 768, 1024, 2048):
2048
string to BigInt = 48656C6C6F205253412D32303438212100000021
BigInt to string: Hello RSA-2048!!!
the encode random number is D1B7B9826B28FCB5EB4965CD7ECD1D29FE7D13AB14C97F763157FCD9
encoded msg: 4F6D6881D918546CA6C72344D5BB0B18AA2B0E990C472AD210CD5448FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFD8494BBF1373D5C988AED86BA2B2535A0A7CE1AB63C07A06779955CB50718D8E1C541A740F8CB6C96CD3AE0F13C0F46E285329DFC663B2BCDE6497
--------------------encode-----------------------
B1A07CB0739EF0F833FD6CE76BDFD4FFF2EE850D9C6ABD56AFED50AEED4630C47F09AB56CF6B8B202029675146A090A4DE65DF2A2865CFF9E9F976A16555E0A98CD3BB21212DB96D0DEAC6FC0357FB9FB1A72A98BB2C8ECF68B517A9FB801D63C266915C2D2CDED1515A0520DE73BB48C284C94528E606DA83DE380D73E57A1E21485B4445F68CF9829204D0B816C33DD5AA3E21B88DDCB6DEF71C5155E385C3903EF4A68C06F56B6E6218DEDEF84E3A6FEC28D21F5AACD57EABFDD0F84F4EBB6F83AB94FA50C0E6FF5C7F496CC9EDF9F6F982B8053C887FB5360DD04349BB67B51BAB370B18B6D8E388D10745A57A1874F8EB9D3BED79964BA84F6C1C5BFA3D
-------------------------------------------------
the decode random number is D1B7B9826B28FCB5EB4965CD7ECD1D29FE7D13AB14C97F763157FCD9
decoded msg: 48656C6C6F205253412D32303438212100000021
BigInt to string: Hello RSA-2048!!!
--------------------decode-----------------------
Hello RSA-2048!!!
-------------------------------------------------
Time used: 62.9500s
-------------------example_demo---------------------
Please input the origin massage:
Harry Potter is a series of seven fantasy novels written by the British author J. K. Rowling. The books chronicle the adventures of a wizard, Harry Potter, and his friends Ronald Weasley and Hermione Granger, all of whom are students at Hogwarts School of Witchcraft and Wizardry. The main story arc concerns Harry's quest to overcome the Dark wizard Lord Voldemort, whose aims are to become immortal, conquer the wizarding world, subjugate non-magical people, and destroy all those who stand in his way, especially Harry Potter.
Please choose the RSA model(512, 768, 1024):
512
string to BigInt = 486172727920506F74746572206973206120736572696573206F6620736576656E2066616E74617379206E6F76656C73207772697474656E20627920
BigInt to string: Harry Potter is a series of seven fantasy novels written by
string to BigInt = 746865204272697469736820617574686F72204A2E204B2E20526F776C696E672E2054686520626F6F6B73206368726F6E69636C6520746865206164
BigInt to string: the British author J. K. Rowling. The books chronicle the ad
string to BigInt = 76656E7475726573206F6620612077697A6172642C20486172727920506F747465722C20616E642068697320667269656E647320526F6E616C642057
BigInt to string: ventures of a wizard, Harry Potter, and his friends Ronald W
string to BigInt = 6561736C657920616E64204865726D696F6E65204772616E6765722C20616C6C206F662077686F6D206172652073747564656E747320617420486F67
BigInt to string: easley and Hermione Granger, all of whom are students at Hog
string to BigInt = 7761727473205363686F6F6C206F66205769746368637261667420616E642057697A61726472792E20546865206D61696E2073746F72792061726320
BigInt to string: warts School of Witchcraft and Wizardry. The main story arc
string to BigInt = 636F6E6365726E73204861727279277320717565737420746F206F766572636F6D6520746865204461726B2077697A617264204C6F726420566F6C64
BigInt to string: concerns Harry's quest to overcome the Dark wizard Lord Vold
string to BigInt = 656D6F72742C2077686F73652061696D732061726520746F206265636F6D6520696D6D6F7274616C2C20636F6E71756572207468652077697A617264
BigInt to string: emort, whose aims are to become immortal, conquer the wizard
string to BigInt = 696E6720776F726C642C207375626A7567617465206E6F6E2D6D61676963616C2070656F706C652C20616E642064657374726F7920616C6C2074686F
BigInt to string: ing world, subjugate non-magical people, and destroy all tho
string to BigInt = 73652077686F207374616E6420696E20686973207761792C20657370656369616C6C7920486172727920506F747465720000002E
BigInt to string: se who stand in his way, especially Harry Potter.
the encode random number is 285
encoded msg: 60C002430B9393C902837BA3A32B91034B990309039B2B934B2B99037B31039B2BB32B7103330B73A30B9BC903737BB32B639903BB934BA3A32B710313C51C43
the encode random number is 446
encoded msg: 784003A343290213934BA34B9B41030BABA3437B9102517102597102937BBB634B73397102A3432903137B7B5B99031B43937B734B1B632903A34329031531FE
the encode random number is 338
encoded msg: 45FFFC4CD48C5C546CD466FC84CEFCF6FC44B42CF46CDE9EFDBCF46C6C36FD7C845C5CD46E9EFCF48CDEFCBCB466FCCC6CB4D48CDC66FD6C848CF49CDEF5FC27
the encode random number is 47C
encoded msg: 7A80032B0B9B632BC9030B732102432B936B4B7B7329023B930B733B2B9161030B6361037B3103BB437B69030B9329039BA3AB232B73A399030BA102436599C6
the encode random number is 379
encoded msg: 4A3FFC44F46C5C66FD64E4BC84849EFC84CEFD44B45CE4BCE46CF4CC5EFCF48CDEFD44B42CF46CDC6C368EFD5CBCD6FC94F4B48EFC645C846C36FCF46CEFBDBD
the encode random number is 196
encoded msg: 46FFFCE4848CE4D46C8C66FDBCF46C6C36C466FC7454D4645EFC5C86FC844CD46CE48494D6FC5CBCD6FDDCF46CA6FC44B42CF46CDEFD9C846CDEFD4C8498B457
the encode random number is 5D2
encoded msg: 69C0032B6B7B93A16103BB437B9B29030B4B6B99030B932903A37903132B1B7B6B29034B6B6B7B93A30B6161031B7B738BAB2B9103A3432903BB4BD30B89526A
the encode random number is 447
encoded msg: 785FFCB48CC6FC44846C9CDE9EFC6454ECAC54C4F45CD6FC8C848E9494F4C4B4E4F49EFC7CD4847C9CD69EFCF48CDEFCDCD4645C6C8436FCF49C9EFC5CA29158
the encode random number is 148
encoded msg: 63FFFFFFFFFFFFFFFFFFFC64D6FC44BC86FC645CF48CDEFCB48EFCBCB466FC44F4369EFCD4647CD4E4B4F49C9C36FDBCF46C6C36FD7C845C5CD46FFFFFF8B546
--------------------encode-----------------------
7678C9CE72182CF83FC44D01BD7CD149DCD8D13396FE9C0F2F731FCEB38EC36C9609C4379E4455DA2FD33377956E50210D5C6349347D383711CBC96443A5F6C8
8F6D2D07AC9B64D704D70FFE602C9BB6EAA202180B9B8381C4B0162746A81A3BDF3EE29B4A4D4C7579E7EFFA3DACFC349D3AF1280AA904F2949B4A5D3A7DC2
E231F048E463E066B39E023362D6FBFA24E9BD2EA928BC6E6E09D73858EA6880F42AAC79A995127DC57DC63506F5B0C015FD56774B276AB45B9B955D57B9086B
88230EBA6143E3262932DEFE612BA434CF1C313EF01479EBCC06B6402C86FE14D86B4ECFAFD92FFC06BEF4199EEA2D8491FB53FE8F565765A9D7529C60CABD3A
32C724EEF85B0D6CC4A59913FA1ED8F0A801B42714F540794828DAFA7F7EC88A77F3D53C06AEDF3B824D5DD7E18299DB10721734FF2DA65DC7DF56686F0F0B
7257F94E95A4895A32E237F0B8A21788730265BA7562BA22843AF80BA08AA614805F1B62FF522C2ACC9DC20EAD335E2D22434F24F89BF1481EC9B6DB25CD2BB6
958DDC601076927C1FC45582F6D2E5FBC49F636108C94621C70D02C462E5C670D69C287E232CEBFD122532AB54B290C3A86E1B7E8F65E34005C97FB731821AE8
28C6659F6972CD28A3DD8A0D9A16B4AAFE2430C1419B8F7F506045A36CA1B9CAD48D82D0E2220673001572529403188A826111A32F9F4F731E54451CC3859ACE
27C362093BB6099DB28B90BA89045DF128D84ADC513C51F495D4F433E6FBE398FE28A8D0422FCB5076E36360D96B59CFE3AA208F839505553BB0C633D7B290AA
-------------------------------------------------
the decode random number is 285
decoded msg: 486172727920506F74746572206973206120736572696573206F6620736576656E2066616E74617379206E6F76656C73207772697474656E20627920
the decode random number is 446
decoded msg: 746865204272697469736820617574686F72204A2E204B2E20526F776C696E672E2054686520626F6F6B73206368726F6E69636C6520746865206164
the decode random number is 338
decoded msg: 76656E7475726573206F6620612077697A6172642C20486172727920506F747465722C20616E642068697320667269656E647320526F6E616C642057
the decode random number is 47C
decoded msg: 6561736C657920616E64204865726D696F6E65204772616E6765722C20616C6C206F662077686F6D206172652073747564656E747320617420486F67
the decode random number is 379
decoded msg: 7761727473205363686F6F6C206F66205769746368637261667420616E642057697A61726472792E20546865206D61696E2073746F72792061726320
the decode random number is 196
decoded msg: 636F6E6365726E73204861727279277320717565737420746F206F766572636F6D6520746865204461726B2077697A617264204C6F726420566F6C64
the decode random number is 5D2
decoded msg: 656D6F72742C2077686F73652061696D732061726520746F206265636F6D6520696D6D6F7274616C2C20636F6E71756572207468652077697A617264
the decode random number is 447
decoded msg: 696E6720776F726C642C207375626A7567617465206E6F6E2D6D61676963616C2070656F706C652C20616E642064657374726F7920616C6C2074686F
the decode random number is 148
decoded msg: 73652077686F207374616E6420696E20686973207761792C20657370656369616C6C7920486172727920506F747465720000002E
BigInt to string: Harry Potter is a series of seven fantasy novels written by
BigInt to string: the British author J. K. Rowling. The books chronicle the ad
BigInt to string: ventures of a wizard, Harry Potter, and his friends Ronald W
BigInt to string: easley and Hermione Granger, all of whom are students at Hog
BigInt to string: warts School of Witchcraft and Wizardry. The main story arc
BigInt to string: concerns Harry's quest to overcome the Dark wizard Lord Vold
BigInt to string: emort, whose aims are to become immortal, conquer the wizard
BigInt to string: ing world, subjugate non-magical people, and destroy all tho
BigInt to string: se who stand in his way, especially Harry Potter.
--------------------decode-----------------------
Harry Potter is a series of seven fantasy novels written by the British author J. K. Rowling. The books chronicle the adventures of a wizard, Harry Potter, and his friends Ronald Weasley and Hermione Granger, all of whom are students at Hogwarts School of Witchcraft and Wizardry. The main story arc concerns Harry's quest to overcome the Dark wizard Lord Voldemort, whose aims are to become immortal, conquer the wizarding world, subjugate non-magical people, and destroy all those who stand in his way, especially Harry Potter.
-------------------------------------------------
Time used: 39.6800s