{"id":2232,"date":"2019-01-22T17:18:30","date_gmt":"2019-01-22T17:18:30","guid":{"rendered":"http:\/\/www.blog.exrockets.com\/blog\/?p=2232"},"modified":"2019-02-04T10:28:40","modified_gmt":"2019-02-04T10:28:40","slug":"vb-net-simple-string-obfuscator-scrambler","status":"publish","type":"post","link":"http:\/\/www.blog.exrockets.com\/blog\/vb-net-simple-string-obfuscator-scrambler\/","title":{"rendered":"VB.NET SIMPLE STRING OBFUSCATOR SCRAMBLER"},"content":{"rendered":"<p>I made a small program that will help you hide and make harder to modify strings inside code. The idea was borrowed from the following project Small String Obfuscator which is for C++ only. However I am using VB.NET thus I had to write a new string obfuscator for VB.NET. The idea of the obfuscator is the following:<\/p>\n<p>Sometimes you place strings in your project like this following \u201cVB.NET STRING SCRAMBLER \/www.blog.exrockets.com\/\u201d<\/p>\n<p><a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/0-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2235\" src=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/0-1.jpg\" alt=\"\" width=\"813\" height=\"206\" srcset=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/0-1.jpg 813w, http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/0-1-300x76.jpg 300w, http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/0-1-768x195.jpg 768w\" sizes=\"auto, (max-width: 813px) 100vw, 813px\" \/><\/a><\/p>\n<p>Which would appear somewhere on your application or during certain action as shown here<\/p>\n<p><a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2236\" src=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/1.jpg\" alt=\"\" width=\"551\" height=\"385\" srcset=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/1.jpg 551w, http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/1-300x210.jpg 300w\" sizes=\"auto, (max-width: 551px) 100vw, 551px\" \/><\/a><\/p>\n<p>Now if you open the application file in a HEX editor you can easily identify the string in question<\/p>\n<p><a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2237\" src=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/2.jpg\" alt=\"\" width=\"1204\" height=\"764\" srcset=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/2.jpg 1204w, http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/2-300x190.jpg 300w, http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/2-768x487.jpg 768w, http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/2-1024x650.jpg 1024w\" sizes=\"auto, (max-width: 1204px) 100vw, 1204px\" \/><\/a><\/p>\n<p>And then you can modify it to something else<\/p>\n<p><a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2238\" src=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/3.jpg\" alt=\"\" width=\"1204\" height=\"766\" srcset=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/3.jpg 1204w, http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/3-300x191.jpg 300w, http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/3-768x489.jpg 768w, http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/3-1024x651.jpg 1024w\" sizes=\"auto, (max-width: 1204px) 100vw, 1204px\" \/><\/a><\/p>\n<p>Which would appear modified in the new file, something that we wouldn\u2019t like to happen.<\/p>\n<p><a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/4.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2239\" src=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/4.jpg\" alt=\"\" width=\"554\" height=\"384\" srcset=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/4.jpg 554w, http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/4-300x208.jpg 300w\" sizes=\"auto, (max-width: 554px) 100vw, 554px\" \/><\/a><\/p>\n<p>How does the VB.NET SIMPLE STRING OBFUSCATOR SCRAMBLER work is like this:<\/p>\n<p><a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/5.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2241\" src=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/5.jpg\" alt=\"\" width=\"552\" height=\"386\" srcset=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/5.jpg 552w, http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/5-300x210.jpg 300w\" sizes=\"auto, (max-width: 552px) 100vw, 552px\" \/><\/a><\/p>\n<p>-enter the string that you would like to scramble in the first window<br \/>\n-VARIABLE1 contains the array of individual scrambled characters of the string<br \/>\n-VARIABLE2 contains the final string recovered from the array of scrambled characters<br \/>\n-DUMMY VARIABLE contains random text strings for additional confusion<\/p>\n<p>When you press the \u201cSCRAMBLE\u201d button the string is broken into characters. Each character is converted to ASCII code to which a random number is added. Then the character is expressed as the difference between the former and the random number. Then between each two consecutive characters a random string with random length is written which has no purpose other than confusion. Finally the scrambled characters are assembled in a third variable which will contain the initial string.<\/p>\n<p><a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/6.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2242\" src=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/6.jpg\" alt=\"\" width=\"513\" height=\"457\" srcset=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/6.jpg 513w, http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/6-300x267.jpg 300w\" sizes=\"auto, (max-width: 513px) 100vw, 513px\" \/><\/a><\/p>\n<p>Now when you open the application file with a HEX editor, the text string will look like some other code and it would be difficult to identify and modify.<\/p>\n<p><a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/7.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2243\" src=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/7.jpg\" alt=\"\" width=\"1205\" height=\"766\" srcset=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/7.jpg 1205w, http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/7-300x191.jpg 300w, http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/7-768x488.jpg 768w, http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/7-1024x651.jpg 1024w\" sizes=\"auto, (max-width: 1205px) 100vw, 1205px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>DOWNLOAD <a href=\"http:\/\/www.blog.exrockets.com\/blog\/wp-content\/uploads\/2019\/01\/String_Scrambler_v1.zip\">String_Scrambler.exe<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I made a small program that will help you hide and make harder to modify strings inside code. The idea was borrowed from the following project Small String Obfuscator which is for C++ only. However I am using VB.NET thus I had to write a new string obfuscator for VB.NET. The idea of the obfuscator [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2241,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"gallery","meta":{"footnotes":""},"categories":[8],"tags":[38,36,35,37,34,39,40],"class_list":["post-2232","post","type-post","status-publish","format-gallery","has-post-thumbnail","hentry","category-chemistry-and-technology","tag-simple-string-obfuscator","tag-string-obfuscator","tag-vb-net","tag-vb-net-simple-string-obfuscator","tag-vb-net-simple-string-obfuscator-scrambler","tag-vb-net-simple-string-scrambler","tag-vb-net-string-scrambler","post_format-post-format-gallery"],"_links":{"self":[{"href":"http:\/\/www.blog.exrockets.com\/blog\/wp-json\/wp\/v2\/posts\/2232","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.blog.exrockets.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.blog.exrockets.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.blog.exrockets.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.blog.exrockets.com\/blog\/wp-json\/wp\/v2\/comments?post=2232"}],"version-history":[{"count":13,"href":"http:\/\/www.blog.exrockets.com\/blog\/wp-json\/wp\/v2\/posts\/2232\/revisions"}],"predecessor-version":[{"id":2270,"href":"http:\/\/www.blog.exrockets.com\/blog\/wp-json\/wp\/v2\/posts\/2232\/revisions\/2270"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.blog.exrockets.com\/blog\/wp-json\/wp\/v2\/media\/2241"}],"wp:attachment":[{"href":"http:\/\/www.blog.exrockets.com\/blog\/wp-json\/wp\/v2\/media?parent=2232"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.blog.exrockets.com\/blog\/wp-json\/wp\/v2\/categories?post=2232"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.blog.exrockets.com\/blog\/wp-json\/wp\/v2\/tags?post=2232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}