{"group":{"id":1,"name":"Community","lockable":false,"created_at":"2012-01-18T18:02:15.000Z","updated_at":"2026-04-06T14:01:22.000Z","description":"Problems submitted by members of the MATLAB Central community.","is_default":true,"created_by":161519,"badge_id":null,"featured":false,"trending":false,"solution_count_in_trending_period":0,"trending_last_calculated":"2026-04-06T00:00:00.000Z","image_id":null,"published":true,"community_created":false,"status_id":2,"is_default_group_for_player":false,"deleted_by":null,"deleted_at":null,"restored_by":null,"restored_at":null,"description_opc":null,"description_html":null,"published_at":null},"problems":[{"id":44959,"title":"RSA encryption using public key ","description":"Encrypt the message text by converting to uint8 matrix using UTF-8 representation. Convert uint8 matrix to a large integer string. Use RSA encryption on the integer string given the public keys (n and e) and output the encrypted integer string. The public key (e) will always be fixed at 65537. No hashing or padding of the message is done.\r\n\r\nFor example:\r\n\r\n  message = 'I like to swim!';%given as input\r\n  integer_String = '379695297047669462525290688599911713';%calculated\r\nn='418336393847020647250825879743341651032293545176800777981294580200903315345456262337972725306797613061';%given as input\r\ne= 65537;%fixed\r\noutput_String = '158037161019988039882393476857386648994978438821991287680442802412825849535544067751541256843540494019';%output\r\n\r\nSee:\r\n\u003chttps://simple.wikipedia.org/wiki/RSA_algorithm\u003e\r\n","description_html":"\u003cp\u003eEncrypt the message text by converting to uint8 matrix using UTF-8 representation. Convert uint8 matrix to a large integer string. Use RSA encryption on the integer string given the public keys (n and e) and output the encrypted integer string. The public key (e) will always be fixed at 65537. No hashing or padding of the message is done.\u003c/p\u003e\u003cp\u003eFor example:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003emessage = 'I like to swim!';%given as input\r\ninteger_String = '379695297047669462525290688599911713';%calculated\r\nn='418336393847020647250825879743341651032293545176800777981294580200903315345456262337972725306797613061';%given as input\r\ne= 65537;%fixed\r\noutput_String = '158037161019988039882393476857386648994978438821991287680442802412825849535544067751541256843540494019';%output\r\n\u003c/pre\u003e\u003cp\u003eSee: \u003ca href = \"https://simple.wikipedia.org/wiki/RSA_algorithm\"\u003ehttps://simple.wikipedia.org/wiki/RSA_algorithm\u003c/a\u003e\u003c/p\u003e","function_template":"function encrypted_message = RSA_Encrypt(message,n)\r\n  encrypted_message='14133';\r\nend","test_suite":"%%\r\nmessage = 'I like to swim!';\r\nn='418336393847020647250825879743341651032293545176800777981294580200903315345456262337972725306797613061';\r\nout = '158037161019988039882393476857386648994978438821991287680442802412825849535544067751541256843540494019';\r\nassert(isequal(RSA_Encrypt(message,n),out))\r\n%%\r\nmessage = 'People who succeed have momentum. The more they succeed, the more they want to succeed and the more they find a way to succeed. Similarly, when someone is failing, the tendency is to get on a downward spiral that can even become a self-fulfilling prophecy.';\r\nn='44842008376687803367401704855862174057751658874412319214254366772513580664834338103711248053800336314605433363839051280089244765499067546768593375603554906634041005882836398715141891796137918851678901692978242458027064144613729242304549721699241688731628849316717564354846304644497408201649639245333007226999680183209765262168096747256549932760714835163829498814356014506466022681051474161134416048209239076204778228261950266231966892099194904195589855692846886804440024833800891898474520523721428667143505915995217245366095168045283186412220277535584022415882288464175935131208288146822299727657938865855853054174274144036081729604573534323903573564345990066095029031133576597298513883268061041004553754062342541175017746399640362184228727837219293246060058323563065371426108553463224921179093569734439828568435658070810483844709529476015493154462587917722806971578721201741643550136095893915598053953011321347017522943202801820158823344592288227452688958887872572522782675644714289349442555731461112275849176682816627205790162163242534462778708459909915826953853537650009043468930450287584181263070727575137424307931682948818963610116434419852585517456098152109913486868606969385133300794635427715727859479612757775192862801547635779921771426233897718528292667112148507798722127322607462037572360649156150337532940752245966765201596748120586383127825681873289878451591957019880886587602576426267683951317718936847177641679183717321862429721190212389237395890951104472937261743929446841800523276218816808066432194473964294708564511969507018959711475230849760902049071415838600456901108854663197095849833602808088094456341330276320302662577163562657750920481798540333412112880539002713127873625438212479154166226846436038698572615482646490520911334607730484144343834476612603467400722323562384577281087071440008144012534847478593412147312743274523095010025887231371129897419306984829625295595332434377173711414555784685658774002600022998291909172576630780759729269867715816511099791566815282862210319017784751883446582453959';\r\nout = '23055330962704323769878549529115024711681463755869375992447358448257597289666397997393945478297323372847937346015110864832142828615195632399869833059964395947034849804307978652470092440225822549097020437344501330227622390881049097656181781980124142659454562923055085607225529541369345564097544873012395850084756321027482195140106724706102857159831541577386517426252851135917933602432485339455137853480425755360413522537180403768732770990453717801905433194599201771294559164174484366213507079896512750859909040228686293902666244968559905065091421969981123917913807285202549025830873320919273470513619143052127674709353494599047667391749001044180280253098309127910967801244777547067797257847396027373615105278074126621948502699483945442597921239032762535839481741386676784123570880434889025648597593711911259097408384527597630246903648267481820555872340696607290773027177673329986283293168575528258578575033034179306629426942699054620008867304832513427178319015491321861291086200676826846740503213061372327825278234127270730394825241275398344604061667061892125034848354745243512927194104643800196788262228848172689053393410972717679060779374106225778531311917434399927265718394014531619654762559111657295163989321031700962115070401533540746801357628868609255941469541707984326602981168016264720519340003693219403163278843126513912057794102645161814569893320900148891952732032827189210372803453777673309727629845360314416264926243414888253428149538146304399700653423118791724424837155323935319171814705469113037576054893140065594406360362408167462563925199225169055130480445976569760198217276692195730775524801021060293503580957364539210146595506177369243830063105693396808209631409860229448190041996912370291877581261016834769083953407597967437841733812344230896457097759403613339974363380556576775192238298546579676296359906794868505900966056565863994904406875527092603782089107591766239203672780399852597928423220774857864301715176837587724591257928112610743311445186658958007825888475800717425136849205837547536117562642680';\r\nassert(isequal(RSA_Encrypt(message,n),out))\r\n%%\r\nmessage = 'First, have a definite, clear practical ideal; a goal, an objective. Second, have the necessary means to achieve your ends; wisdom, money, materials, and methods.';\r\nn='2044371069952561243871813747701535503388267616657953475148898181142012590397809234167373308955772082860082985954286137615597515257087506574051530104475374974920093127841789408014496870693507622812332673504654584870100580476794800708440785082437228308551107726064054828640053321250498545183042994878498928173976370185712833904492317580152665428272199317847097773542066059565512439224992672101163367819';\r\nout = '99761240327251194937668282784881225946299704960682605372368300120848092908591455333889649815054891832920433772438140697229743047905660648016064750862552787515723449901585029566883857331537912668878918706229773460108043130645834201085405226084010413433457258525704626839479467337463012332940952234541291286602023412313079939518264986360860440514106228995186076871512459300140814669747884371890194124';\r\nassert(isequal(RSA_Encrypt(message,n),out))","published":true,"deleted":false,"likes_count":1,"comments_count":5,"created_by":145982,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":8,"test_suite_updated_at":"2019-08-29T18:00:37.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2019-08-29T02:42:05.000Z","updated_at":"2025-10-15T14:57:07.000Z","published_at":"2019-08-29T02:52:31.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eEncrypt the message text by converting to uint8 matrix using UTF-8 representation. Convert uint8 matrix to a large integer string. Use RSA encryption on the integer string given the public keys (n and e) and output the encrypted integer string. The public key (e) will always be fixed at 65537. No hashing or padding of the message is done.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFor example:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[message = 'I like to swim!';%given as input\\ninteger_String = '379695297047669462525290688599911713';%calculated\\nn='418336393847020647250825879743341651032293545176800777981294580200903315345456262337972725306797613061';%given as input\\ne= 65537;%fixed\\noutput_String = '158037161019988039882393476857386648994978438821991287680442802412825849535544067751541256843540494019';%output]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eSee:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"https://simple.wikipedia.org/wiki/RSA_algorithm\\\"\u003e\u003cw:r\u003e\u003cw:t\u003e\u0026lt;https://simple.wikipedia.org/wiki/RSA_algorithm\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e\u0026gt;\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"}],"problem_search":{"errors":[],"problems":[{"id":44959,"title":"RSA encryption using public key ","description":"Encrypt the message text by converting to uint8 matrix using UTF-8 representation. Convert uint8 matrix to a large integer string. Use RSA encryption on the integer string given the public keys (n and e) and output the encrypted integer string. The public key (e) will always be fixed at 65537. No hashing or padding of the message is done.\r\n\r\nFor example:\r\n\r\n  message = 'I like to swim!';%given as input\r\n  integer_String = '379695297047669462525290688599911713';%calculated\r\nn='418336393847020647250825879743341651032293545176800777981294580200903315345456262337972725306797613061';%given as input\r\ne= 65537;%fixed\r\noutput_String = '158037161019988039882393476857386648994978438821991287680442802412825849535544067751541256843540494019';%output\r\n\r\nSee:\r\n\u003chttps://simple.wikipedia.org/wiki/RSA_algorithm\u003e\r\n","description_html":"\u003cp\u003eEncrypt the message text by converting to uint8 matrix using UTF-8 representation. Convert uint8 matrix to a large integer string. Use RSA encryption on the integer string given the public keys (n and e) and output the encrypted integer string. The public key (e) will always be fixed at 65537. No hashing or padding of the message is done.\u003c/p\u003e\u003cp\u003eFor example:\u003c/p\u003e\u003cpre class=\"language-matlab\"\u003emessage = 'I like to swim!';%given as input\r\ninteger_String = '379695297047669462525290688599911713';%calculated\r\nn='418336393847020647250825879743341651032293545176800777981294580200903315345456262337972725306797613061';%given as input\r\ne= 65537;%fixed\r\noutput_String = '158037161019988039882393476857386648994978438821991287680442802412825849535544067751541256843540494019';%output\r\n\u003c/pre\u003e\u003cp\u003eSee: \u003ca href = \"https://simple.wikipedia.org/wiki/RSA_algorithm\"\u003ehttps://simple.wikipedia.org/wiki/RSA_algorithm\u003c/a\u003e\u003c/p\u003e","function_template":"function encrypted_message = RSA_Encrypt(message,n)\r\n  encrypted_message='14133';\r\nend","test_suite":"%%\r\nmessage = 'I like to swim!';\r\nn='418336393847020647250825879743341651032293545176800777981294580200903315345456262337972725306797613061';\r\nout = '158037161019988039882393476857386648994978438821991287680442802412825849535544067751541256843540494019';\r\nassert(isequal(RSA_Encrypt(message,n),out))\r\n%%\r\nmessage = 'People who succeed have momentum. The more they succeed, the more they want to succeed and the more they find a way to succeed. Similarly, when someone is failing, the tendency is to get on a downward spiral that can even become a self-fulfilling prophecy.';\r\nn='44842008376687803367401704855862174057751658874412319214254366772513580664834338103711248053800336314605433363839051280089244765499067546768593375603554906634041005882836398715141891796137918851678901692978242458027064144613729242304549721699241688731628849316717564354846304644497408201649639245333007226999680183209765262168096747256549932760714835163829498814356014506466022681051474161134416048209239076204778228261950266231966892099194904195589855692846886804440024833800891898474520523721428667143505915995217245366095168045283186412220277535584022415882288464175935131208288146822299727657938865855853054174274144036081729604573534323903573564345990066095029031133576597298513883268061041004553754062342541175017746399640362184228727837219293246060058323563065371426108553463224921179093569734439828568435658070810483844709529476015493154462587917722806971578721201741643550136095893915598053953011321347017522943202801820158823344592288227452688958887872572522782675644714289349442555731461112275849176682816627205790162163242534462778708459909915826953853537650009043468930450287584181263070727575137424307931682948818963610116434419852585517456098152109913486868606969385133300794635427715727859479612757775192862801547635779921771426233897718528292667112148507798722127322607462037572360649156150337532940752245966765201596748120586383127825681873289878451591957019880886587602576426267683951317718936847177641679183717321862429721190212389237395890951104472937261743929446841800523276218816808066432194473964294708564511969507018959711475230849760902049071415838600456901108854663197095849833602808088094456341330276320302662577163562657750920481798540333412112880539002713127873625438212479154166226846436038698572615482646490520911334607730484144343834476612603467400722323562384577281087071440008144012534847478593412147312743274523095010025887231371129897419306984829625295595332434377173711414555784685658774002600022998291909172576630780759729269867715816511099791566815282862210319017784751883446582453959';\r\nout = '23055330962704323769878549529115024711681463755869375992447358448257597289666397997393945478297323372847937346015110864832142828615195632399869833059964395947034849804307978652470092440225822549097020437344501330227622390881049097656181781980124142659454562923055085607225529541369345564097544873012395850084756321027482195140106724706102857159831541577386517426252851135917933602432485339455137853480425755360413522537180403768732770990453717801905433194599201771294559164174484366213507079896512750859909040228686293902666244968559905065091421969981123917913807285202549025830873320919273470513619143052127674709353494599047667391749001044180280253098309127910967801244777547067797257847396027373615105278074126621948502699483945442597921239032762535839481741386676784123570880434889025648597593711911259097408384527597630246903648267481820555872340696607290773027177673329986283293168575528258578575033034179306629426942699054620008867304832513427178319015491321861291086200676826846740503213061372327825278234127270730394825241275398344604061667061892125034848354745243512927194104643800196788262228848172689053393410972717679060779374106225778531311917434399927265718394014531619654762559111657295163989321031700962115070401533540746801357628868609255941469541707984326602981168016264720519340003693219403163278843126513912057794102645161814569893320900148891952732032827189210372803453777673309727629845360314416264926243414888253428149538146304399700653423118791724424837155323935319171814705469113037576054893140065594406360362408167462563925199225169055130480445976569760198217276692195730775524801021060293503580957364539210146595506177369243830063105693396808209631409860229448190041996912370291877581261016834769083953407597967437841733812344230896457097759403613339974363380556576775192238298546579676296359906794868505900966056565863994904406875527092603782089107591766239203672780399852597928423220774857864301715176837587724591257928112610743311445186658958007825888475800717425136849205837547536117562642680';\r\nassert(isequal(RSA_Encrypt(message,n),out))\r\n%%\r\nmessage = 'First, have a definite, clear practical ideal; a goal, an objective. Second, have the necessary means to achieve your ends; wisdom, money, materials, and methods.';\r\nn='2044371069952561243871813747701535503388267616657953475148898181142012590397809234167373308955772082860082985954286137615597515257087506574051530104475374974920093127841789408014496870693507622812332673504654584870100580476794800708440785082437228308551107726064054828640053321250498545183042994878498928173976370185712833904492317580152665428272199317847097773542066059565512439224992672101163367819';\r\nout = '99761240327251194937668282784881225946299704960682605372368300120848092908591455333889649815054891832920433772438140697229743047905660648016064750862552787515723449901585029566883857331537912668878918706229773460108043130645834201085405226084010413433457258525704626839479467337463012332940952234541291286602023412313079939518264986360860440514106228995186076871512459300140814669747884371890194124';\r\nassert(isequal(RSA_Encrypt(message,n),out))","published":true,"deleted":false,"likes_count":1,"comments_count":5,"created_by":145982,"edited_by":null,"edited_at":null,"deleted_by":null,"deleted_at":null,"solvers_count":8,"test_suite_updated_at":"2019-08-29T18:00:37.000Z","rescore_all_solutions":false,"group_id":1,"created_at":"2019-08-29T02:42:05.000Z","updated_at":"2025-10-15T14:57:07.000Z","published_at":"2019-08-29T02:52:31.000Z","restored_at":null,"restored_by":null,"spam":false,"simulink":false,"admin_reviewed":false,"description_opc":"{\"relationships\":[{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/document\",\"targetMode\":\"\",\"relationshipId\":\"rId1\",\"target\":\"/matlab/document.xml\"},{\"relationshipType\":\"http://schemas.mathworks.com/matlab/code/2013/relationships/output\",\"targetMode\":\"\",\"relationshipId\":\"rId2\",\"target\":\"/matlab/output.xml\"}],\"parts\":[{\"partUri\":\"/matlab/document.xml\",\"relationship\":[],\"contentType\":\"application/vnd.mathworks.matlab.code.document+xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?\u003e\\n\u003cw:document xmlns:w=\\\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\\\"\u003e\u003cw:body\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eEncrypt the message text by converting to uint8 matrix using UTF-8 representation. Convert uint8 matrix to a large integer string. Use RSA encryption on the integer string given the public keys (n and e) and output the encrypted integer string. The public key (e) will always be fixed at 65537. No hashing or padding of the message is done.\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eFor example:\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"code\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003e\u003c![CDATA[message = 'I like to swim!';%given as input\\ninteger_String = '379695297047669462525290688599911713';%calculated\\nn='418336393847020647250825879743341651032293545176800777981294580200903315345456262337972725306797613061';%given as input\\ne= 65537;%fixed\\noutput_String = '158037161019988039882393476857386648994978438821991287680442802412825849535544067751541256843540494019';%output]]\u003e\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003cw:p\u003e\u003cw:pPr\u003e\u003cw:pStyle w:val=\\\"text\\\"/\u003e\u003c/w:pPr\u003e\u003cw:r\u003e\u003cw:t\u003eSee:\u003c/w:t\u003e\u003c/w:r\u003e\u003cw:r\u003e\u003cw:t\u003e \u003c/w:t\u003e\u003c/w:r\u003e\u003cw:hyperlink w:docLocation=\\\"https://simple.wikipedia.org/wiki/RSA_algorithm\\\"\u003e\u003cw:r\u003e\u003cw:t\u003e\u0026lt;https://simple.wikipedia.org/wiki/RSA_algorithm\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:hyperlink\u003e\u003cw:r\u003e\u003cw:t\u003e\u0026gt;\u003c/w:t\u003e\u003c/w:r\u003e\u003c/w:p\u003e\u003c/w:body\u003e\u003c/w:document\u003e\"},{\"partUri\":\"/matlab/output.xml\",\"contentType\":\"text/xml\",\"content\":\"\u003c?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?\u003e\u003cembeddedOutputs\u003e\u003cmetaData\u003e\u003cevaluationState\u003emanual\u003c/evaluationState\u003e\u003clayoutState\u003ecode\u003c/layoutState\u003e\u003coutputStatus\u003eready\u003c/outputStatus\u003e\u003c/metaData\u003e\u003coutputArray type=\\\"array\\\"/\u003e\u003cregionArray type=\\\"array\\\"/\u003e\u003c/embeddedOutputs\u003e\"}]}"}],"term":"tag:\"rsa encryption\"","current_player_id":null,"fields":[{"name":"page","type":"integer","callback":null,"default":1,"directive":null,"facet":null,"facet_method":"and","operator":null,"param":null,"static":null,"prepend":true},{"name":"per_page","type":"integer","callback":null,"default":50,"directive":null,"facet":null,"facet_method":"and","operator":null,"param":null,"static":null,"prepend":true},{"name":"sort","type":"string","callback":null,"default":null,"directive":null,"facet":null,"facet_method":"and","operator":null,"param":null,"static":null,"prepend":true},{"name":"body","type":"text","callback":null,"default":"*:*","directive":null,"facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":false},{"name":"group","type":"string","callback":null,"default":null,"directive":"group","facet":true,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"difficulty_rating_bin","type":"string","callback":null,"default":null,"directive":"difficulty_rating_bin","facet":true,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"id","type":"integer","callback":null,"default":null,"directive":"id","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"tag","type":"string","callback":null,"default":null,"directive":"tag","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"product","type":"string","callback":null,"default":null,"directive":"product","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"created_at","type":"timeframe","callback":{},"default":null,"directive":"created_at","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"profile_id","type":"integer","callback":null,"default":null,"directive":"author_id","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"created_by","type":"string","callback":null,"default":null,"directive":"author","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"player_id","type":"integer","callback":null,"default":null,"directive":"solver_id","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"player","type":"string","callback":null,"default":null,"directive":"solver","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"solvers_count","type":"integer","callback":null,"default":null,"directive":"solvers_count","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"comments_count","type":"integer","callback":null,"default":null,"directive":"comments_count","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"likes_count","type":"integer","callback":null,"default":null,"directive":"likes_count","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"leader_id","type":"integer","callback":null,"default":null,"directive":"leader_id","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true},{"name":"leading_solution","type":"integer","callback":null,"default":null,"directive":"leading_solution","facet":null,"facet_method":"and","operator":null,"param":"term","static":null,"prepend":true}],"filters":[{"name":"asset_type","type":"string","callback":null,"default":null,"directive":null,"facet":null,"facet_method":"and","operator":null,"param":null,"static":"\"cody:problem\"","prepend":true},{"name":"profile_id","type":"integer","callback":{},"default":null,"directive":null,"facet":null,"facet_method":"and","operator":null,"param":"author_id","static":null,"prepend":true}],"query":{"params":{"per_page":50,"term":"tag:\"rsa encryption\"","current_player":null,"sort":"map(difficulty_value,0,0,999) asc"},"parser":"MathWorks::Search::Solr::QueryParser","directives":{"term":{"directives":{"tag":[["tag:\"rsa encryption\"","","\"","rsa encryption","\""]]}}},"facets":{"#\u003cMathWorks::Search::Field:0x00007f64e550ab58\u003e":null,"#\u003cMathWorks::Search::Field:0x00007f64e550aab8\u003e":null},"filters":{"#\u003cMathWorks::Search::Field:0x00007f64e550a1f8\u003e":"\"cody:problem\""},"fields":{"#\u003cMathWorks::Search::Field:0x00007f64e550add8\u003e":1,"#\u003cMathWorks::Search::Field:0x00007f64e550ad38\u003e":50,"#\u003cMathWorks::Search::Field:0x00007f64e550ac98\u003e":"map(difficulty_value,0,0,999) asc","#\u003cMathWorks::Search::Field:0x00007f64e550abf8\u003e":"tag:\"rsa encryption\""},"user_query":{"#\u003cMathWorks::Search::Field:0x00007f64e550abf8\u003e":"tag:\"rsa encryption\""},"queried_facets":{}},"query_backend":{"connection":{"configuration":{"index_url":"http://index-op-v2/solr/","query_url":"http://search-op-v2/solr/","direct_access_index_urls":["http://index-op-v2/solr/"],"direct_access_query_urls":["http://search-op-v2/solr/"],"timeout":10,"vhost":"search","exchange":"search.topic","heartbeat":30,"pre_index_mode":false,"host":"rabbitmq-eks","port":5672,"username":"cody-search","password":"78X075ddcV44","virtual_host":"search","indexer":"amqp","http_logging":"true","core":"cody"},"query_connection":{"uri":"http://search-op-v2/solr/cody/","proxy":null,"connection":{"parallel_manager":null,"headers":{"User-Agent":"Faraday v1.0.1"},"params":{},"options":{"params_encoder":"Faraday::FlatParamsEncoder","proxy":null,"bind":null,"timeout":null,"open_timeout":null,"read_timeout":null,"write_timeout":null,"boundary":null,"oauth":null,"context":null,"on_data":null},"ssl":{"verify":true,"ca_file":null,"ca_path":null,"verify_mode":null,"cert_store":null,"client_cert":null,"client_key":null,"certificate":null,"private_key":null,"verify_depth":null,"version":null,"min_version":null,"max_version":null},"default_parallel_manager":null,"builder":{"adapter":{"name":"Faraday::Adapter::NetHttp","args":[],"block":null},"handlers":[{"name":"Faraday::Response::RaiseError","args":[],"block":null}],"app":{"app":{"ssl_cert_store":{"verify_callback":null,"error":null,"error_string":null,"chain":null,"time":null},"app":{},"connection_options":{},"config_block":null}}},"url_prefix":"http://search-op-v2/solr/cody/","manual_proxy":false,"proxy":null},"update_format":"RSolr::JSON::Generator","update_path":"update","options":{"url":"http://search-op-v2/solr/cody"}}},"query":{"params":{"per_page":50,"term":"tag:\"rsa encryption\"","current_player":null,"sort":"map(difficulty_value,0,0,999) asc"},"parser":"MathWorks::Search::Solr::QueryParser","directives":{"term":{"directives":{"tag":[["tag:\"rsa encryption\"","","\"","rsa encryption","\""]]}}},"facets":{"#\u003cMathWorks::Search::Field:0x00007f64e550ab58\u003e":null,"#\u003cMathWorks::Search::Field:0x00007f64e550aab8\u003e":null},"filters":{"#\u003cMathWorks::Search::Field:0x00007f64e550a1f8\u003e":"\"cody:problem\""},"fields":{"#\u003cMathWorks::Search::Field:0x00007f64e550add8\u003e":1,"#\u003cMathWorks::Search::Field:0x00007f64e550ad38\u003e":50,"#\u003cMathWorks::Search::Field:0x00007f64e550ac98\u003e":"map(difficulty_value,0,0,999) asc","#\u003cMathWorks::Search::Field:0x00007f64e550abf8\u003e":"tag:\"rsa encryption\""},"user_query":{"#\u003cMathWorks::Search::Field:0x00007f64e550abf8\u003e":"tag:\"rsa encryption\""},"queried_facets":{}},"options":{"fields":["id","difficulty_rating"]},"join":" "},"results":[{"id":44959,"difficulty_rating":"medium-hard"}]}}