Reverse a string in Rust
· β 2 min read · π€ Naresh Mehta
Rust has been gaining a lot of positive attention in the developer community due to very many positive things. You can read more on Stackoverflow (https://stackoverflow.blog/2020/01/20/what-is-rust-and-why-is-it-so-popular/) so I will avoid repetition on this blog.
Rust has fantastic support for basic str primitive (https://doc.rust-lang.org/std/primitive.str.html) but there are typical things that are very hard to get a grip on when one jumps to Rust as a C/C++ developer. I was doing some exercisim.io for Rust and came across a nice exercise where a primitive str is passed to a function which is expected to return a Rust String with the contents reversed i.e. drawer as an input is reversed into reward as an out.
β¦ Well, I certainly have my concerns after working as a product manager now for almost a year and a half. But thank god, I can still code. And well, I downloaded a keygenme and downloaded the tools I needed and sat to work and create some fun and excitement. I had nothing more to write so thought why not write something about this keygenme and teach many of my readers basics of assembly, reverse engineering, tools, etc. But I must admit that all the sites that I used to browse during my college days are long pulled down now (barring a couple of them) so you guys will have to search really hard to get the tools required. But once you get a link to one site, you will get links to all other sites and tools.