<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Kremilly</title>
    <description>The latest articles on DEV Community by Kremilly (@kremilly).</description>
    <link>https://dev.to/kremilly</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F149253%2Fd4b3e294-4d17-4930-975b-51068f617cac.png</url>
      <title>DEV Community: Kremilly</title>
      <link>https://dev.to/kremilly</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kremilly"/>
    <language>en</language>
    <item>
      <title>ShadowJS: A Fast and Lightweight JavaScript Obfuscator Built with Rust</title>
      <dc:creator>Kremilly</dc:creator>
      <pubDate>Fri, 27 Dec 2024 17:23:01 +0000</pubDate>
      <link>https://dev.to/kremilly/shadowjs-a-fast-and-lightweight-javascript-obfuscator-built-with-rust-10i8</link>
      <guid>https://dev.to/kremilly/shadowjs-a-fast-and-lightweight-javascript-obfuscator-built-with-rust-10i8</guid>
      <description>&lt;p&gt;Hello Dev Community! 👋&lt;/p&gt;

&lt;p&gt;Today, I want to introduce a new tool that I’ve been working on: &lt;strong&gt;ShadowJS&lt;/strong&gt; – a fast, lightweight JavaScript obfuscator built with &lt;strong&gt;Rust&lt;/strong&gt;. If you're looking for a way to protect your JavaScript code and prevent tampering, this might be the tool for you.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is ShadowJS?
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;ShadowJS&lt;/strong&gt; is a simple yet powerful JavaScript obfuscator designed to protect your code by converting readable identifiers into cryptic, hard-to-decipher formats. By doing so, it ensures that your proprietary logic remains safe, without sacrificing performance.&lt;/p&gt;

&lt;p&gt;Built with &lt;strong&gt;Rust&lt;/strong&gt;, ShadowJS is lightweight and fast, making it ideal for use in production environments where speed and efficiency matter.&lt;/p&gt;

&lt;h2&gt;
  
  
  Features
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Fast &amp;amp; Lightweight&lt;/strong&gt;: ShadowJS is built in &lt;strong&gt;Rust&lt;/strong&gt;, offering speed and minimal resource usage.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Customizable Obfuscation&lt;/strong&gt;: The tool generates random, hard-to-read identifiers that make it difficult for anyone to reverse-engineer your code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Security Focused&lt;/strong&gt;: It helps protect your code by converting readable variables and function names into obscure identifiers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Easy to Use&lt;/strong&gt;: Just a simple command-line interface that lets you obfuscate your JavaScript code in seconds.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How Does It Work?
&lt;/h2&gt;

&lt;p&gt;ShadowJS uses regular expressions to identify JavaScript variables and function names in the code. It then replaces those identifiers with random, unique strings, keeping the rest of the JavaScript code intact.&lt;/p&gt;

&lt;p&gt;Here’s how it works in a nutshell:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Reserved Words&lt;/strong&gt;: ShadowJS doesn’t obfuscate JavaScript keywords like &lt;code&gt;function&lt;/code&gt;, &lt;code&gt;return&lt;/code&gt;, &lt;code&gt;if&lt;/code&gt;, etc., to ensure the code remains valid and functional.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Random Identifiers&lt;/strong&gt;: Non-reserved identifiers are replaced with random strings to obscure the code’s meaning.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why Rust?
&lt;/h2&gt;

&lt;p&gt;I chose &lt;strong&gt;Rust&lt;/strong&gt; for this project because of its performance and safety guarantees. Rust ensures that &lt;strong&gt;ShadowJS&lt;/strong&gt; runs efficiently, even on large JavaScript files, while also providing memory safety without needing a garbage collector.&lt;/p&gt;

&lt;p&gt;Additionally, &lt;strong&gt;Rust&lt;/strong&gt; makes it easy to build fast command-line tools, which is perfect for this kind of utility.&lt;/p&gt;

&lt;h2&gt;
  
  
  Installation
&lt;/h2&gt;

&lt;p&gt;If you want to try out &lt;strong&gt;ShadowJS&lt;/strong&gt;, here’s how you can get started:&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Install Rust
&lt;/h3&gt;

&lt;p&gt;First, make sure you have &lt;strong&gt;Rust&lt;/strong&gt; installed. If you don’t have it yet, follow the official instructions &lt;a href="https://www.rust-lang.org/tools/install" rel="noopener noreferrer"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 2: Install crate
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;cargo &lt;span class="nb"&gt;install &lt;/span&gt;shadowjs
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Usage Example
&lt;/h2&gt;

&lt;p&gt;For example, to obfuscate &lt;code&gt;input.js&lt;/code&gt; and save the result in &lt;code&gt;output.min.js&lt;/code&gt;, simply run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;shadowjs input.js output.min.js
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That’s it! You’ve successfully obfuscated your JavaScript code with &lt;strong&gt;ShadowJS&lt;/strong&gt;. 🔐&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Should You Use ShadowJS?
&lt;/h2&gt;

&lt;p&gt;JavaScript is often exposed to the public, which means that anyone can inspect and modify it. By obfuscating your code, you add an extra layer of protection. This can be particularly useful when dealing with proprietary algorithms, business logic, or preventing unauthorized tampering.&lt;/p&gt;

&lt;h2&gt;
  
  
  Contributing
&lt;/h2&gt;

&lt;p&gt;If you find any bugs or have suggestions to improve &lt;strong&gt;ShadowJS&lt;/strong&gt;, feel free to open an issue or submit a pull request on &lt;a href="https://github.com/kremilly/ShadowJS" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;. I’d love to have contributions from the community to make this tool even better!&lt;/p&gt;

&lt;h2&gt;
  
  
  License
&lt;/h2&gt;

&lt;p&gt;ShadowJS is licensed under the &lt;strong&gt;MIT License&lt;/strong&gt;. See the &lt;a href="https://github.com/kremilly/ShadowJS/blob/main/LICENSE" rel="noopener noreferrer"&gt;LICENSE&lt;/a&gt; file for more details.&lt;/p&gt;




&lt;p&gt;That’s all for today! I hope &lt;strong&gt;ShadowJS&lt;/strong&gt; can be a helpful tool for your next project. If you have any questions or need further clarification, feel free to reach out in the comments. Let’s keep building great things! 🚀&lt;/p&gt;

</description>
      <category>rust</category>
      <category>security</category>
      <category>javascript</category>
      <category>cli</category>
    </item>
    <item>
      <title>A simple tool for automated MySQL database dumps and restores</title>
      <dc:creator>Kremilly</dc:creator>
      <pubDate>Tue, 05 Nov 2024 17:05:32 +0000</pubDate>
      <link>https://dev.to/kremilly/a-simple-tool-for-automated-mysql-database-dumps-and-restores-3mc2</link>
      <guid>https://dev.to/kremilly/a-simple-tool-for-automated-mysql-database-dumps-and-restores-3mc2</guid>
      <description>&lt;p&gt;Hey everyone! 👋  &lt;/p&gt;

&lt;p&gt;I’ve recently built a Rust-based tool called &lt;strong&gt;DumpSync&lt;/strong&gt; that allows for &lt;strong&gt;automatic MySQL database dumps and restores&lt;/strong&gt;. It’s designed for easy backups, restorations, or even transferring databases between servers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Overview&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
DumpSync enables scheduled MySQL database dumps at configurable intervals, saving them to a directory of your choice. You can configure it using environment variables or command-line arguments, which makes it adaptable for various use cases — whether you're running regular backups or managing data migration tasks.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Features&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Automatic dumps at specified intervals&lt;/li&gt;
&lt;li&gt;Environment variable and command-line configurations&lt;/li&gt;
&lt;li&gt;Saves dumps in a specified directory for easy management&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Check it out on &lt;a href="https://github.com/kremilly/DumpSync" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; and let me know what you think! I’d love to get feedback, suggestions, or ideas for improvement. 😊&lt;/p&gt;

</description>
      <category>rust</category>
      <category>mysql</category>
      <category>sysadmin</category>
      <category>backup</category>
    </item>
    <item>
      <title>Why Use Rust?</title>
      <dc:creator>Kremilly</dc:creator>
      <pubDate>Thu, 25 Jul 2024 14:45:10 +0000</pubDate>
      <link>https://dev.to/kremilly/why-use-rust-4c4c</link>
      <guid>https://dev.to/kremilly/why-use-rust-4c4c</guid>
      <description>&lt;h2&gt;
  
  
  Creation of the Language
&lt;/h2&gt;

&lt;p&gt;Rust was created in 2006 by the Mozilla engineering team to address critical problems in software development, especially those related to memory safety, concurrency, and performance. Highly versatile, it has garnered increasing interest in recent years. Its elegant syntax and powerful safety tools make it a popular choice among developers seeking performance and reliability. The vibrant community and ongoing support from the Mozilla Foundation also contribute to its prominence in the modern programming landscape.&lt;/p&gt;

&lt;h2&gt;
  
  
  Strengths of the Language
&lt;/h2&gt;

&lt;p&gt;Like all programming languages, Rust has several strengths that make it stand out among other languages on the market. Here are some of the main reasons to consider using Rust:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Memory Safety&lt;/strong&gt;: Rust is designed to eliminate memory errors, such as out-of-bounds array accesses and null pointer dereferencing, without the need for a garbage collector. It achieves this through its ownership and borrowing system.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Concurrency&lt;/strong&gt;: Rust offers modern tools for concurrent programming. Thanks to its ownership system, it is harder to make common concurrency mistakes, such as race conditions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Performance&lt;/strong&gt;: Rust is a compiled language that offers performance comparable to C++ in many cases. It is designed to be fast and provides fine control over low-level details when necessary.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Interoperability with C&lt;/strong&gt;: Rust can easily interoperate with C code, making it suitable for rewriting critical parts of existing systems or creating high-performance extensions for languages like Python.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Modern Tools&lt;/strong&gt;: Rust comes with a package manager and build system called Cargo. It simplifies project compilation, dependency management, and library publishing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rapid Evolution&lt;/strong&gt;: The Rust community is active and constantly improving the language, libraries, and tools.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Active and Welcoming Community&lt;/strong&gt;: The Rust community is known for being extremely welcoming and active. There are many resources, such as "The Rust Book," to help new users learn the language.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use in Various Domains&lt;/strong&gt;: Rust is being adopted in various areas, from embedded systems to web development (e.g., with frameworks like Rocket and via WebAssembly).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Zero-Cost Abstractions&lt;/strong&gt;: Like C++, Rust allows programmers to write abstractions without performance penalties.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Adoption by Companies&lt;/strong&gt;: Large companies such as Microsoft, Google, and Facebook have shown interest in Rust and have explored its use in various projects.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where is Rust Used?
&lt;/h2&gt;

&lt;p&gt;Rust can be used in any system that requires careful handling of allocation and resource safety on the machine running the code. Here is a small list of examples where the language is being used:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Browsers&lt;/strong&gt; (e.g., the Servo rendering engine)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Operating Systems&lt;/strong&gt; (e.g., Redox OS)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Blockchain&lt;/strong&gt; (e.g., Polkadot)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Development Tools&lt;/strong&gt; (e.g., ripgrep, a text search tool)&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  It is Worth Noting That...
&lt;/h2&gt;

&lt;p&gt;The adoption of any programming language depends on the specific needs of the project, the team, and the application domain. Rust may not be the right choice for all projects, but its features make it an attractive option for many scenarios, especially when memory safety and performance are primary concerns.&lt;/p&gt;

&lt;p&gt;Additionally, Rust's emphasis on memory safety and its innovative approach to handling concurrency and parallelism make it particularly suitable for sensitive applications, such as embedded systems, where reliability is crucial. Its robustness and exceptional performance also make it an attractive choice for developing distributed systems infrastructure and networks, where scalability and resilience are key. As the demand for reliable and efficient software continues to grow, Rust emerges as a powerful and relevant tool to tackle the challenges of modern software development.&lt;/p&gt;

</description>
      <category>rust</category>
      <category>security</category>
    </item>
    <item>
      <title>How to add pinned repos in your portfolio or website?</title>
      <dc:creator>Kremilly</dc:creator>
      <pubDate>Wed, 22 Nov 2023 17:29:40 +0000</pubDate>
      <link>https://dev.to/kremilly/how-to-added-pinned-repos-in-your-portfolio-or-website-3agg</link>
      <guid>https://dev.to/kremilly/how-to-added-pinned-repos-in-your-portfolio-or-website-3agg</guid>
      <description>&lt;p&gt;If you want to add your pinned repositories to your portfolio or website and can't find an API that works for this, then your problems are over. I've created an API that does exactly that, and its usage is extremely easy. Simply pass your GitHub username as a query parameter.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;https://api.kremilly.com/github?user=YOUR_USERNAME&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Example of use:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nf"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;https://api.kremilly.com/github?user=kremilly&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;then&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
   &lt;span class="nx"&gt;json&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;then&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;callback&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; 
   &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;callback&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; 
&lt;span class="p"&gt;})&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace YOUR_USERNAME with your GitHub username.&lt;/p&gt;

&lt;p&gt;The API will return a JSON with all your pinned repositories (if any; otherwise, it will return an empty JSON).&lt;/p&gt;

</description>
      <category>api</category>
      <category>github</category>
      <category>python</category>
      <category>flask</category>
    </item>
  </channel>
</rss>
