<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Armando Prieto Padrón on Medium]]></title>
        <description><![CDATA[Stories by Armando Prieto Padrón on Medium]]></description>
        <link>https://medium.com/@prieto.arm?source=rss-d2e167d58ddd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ATmGbS5Xj5CsE5so.</url>
            <title>Stories by Armando Prieto Padrón on Medium</title>
            <link>https://medium.com/@prieto.arm?source=rss-d2e167d58ddd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 13:49:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@prieto.arm/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Jasypt for Micronaut]]></title>
            <link>https://medium.com/@prieto.arm/jasypt-for-micronaut-f0339879de9d?source=rss-d2e167d58ddd------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0339879de9d</guid>
            <category><![CDATA[secrets]]></category>
            <category><![CDATA[micronaut]]></category>
            <category><![CDATA[jasypt]]></category>
            <dc:creator><![CDATA[Armando Prieto Padrón]]></dc:creator>
            <pubDate>Wed, 13 Aug 2025 01:06:52 GMT</pubDate>
            <atom:updated>2025-08-13T01:06:52.904Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://github.com/aprietop/jasypt-micronaut"><strong>jasypt-micronaut</strong></a> is an open-source library that enables easy integration of <strong>Jasypt</strong> (Java Simplified Encryption) into Micronaut applications. It allows developers to encrypt and decrypt sensitive configuration properties directly within supported config files like YAML or properties files, leveraging Micronaut’s configuration system.</p><p>Originally inspired by the popular <a href="https://github.com/ulisesbocchio/jasypt-spring-boot">jasypt‑spring‑boot</a>, this implementation brings similar encryption capabilities to the Micronaut applications.</p><h3>Getting Started</h3><h3>Add the dependency to your project</h3><h4>Gradle</h4><pre>dependencies {<br>    implementation &#39;io.github.aprietop:jasypt-micronaut:1.0.0&#39;<br>}</pre><h4>Maven</h4><pre>&lt;dependency&gt;<br>  &lt;groupId&gt;io.github.aprietop&lt;/groupId&gt;<br>  &lt;artifactId&gt;jasypt-micronaut&lt;/artifactId&gt;<br>  &lt;version&gt;1.0.0&lt;/version&gt;<br>&lt;/dependency&gt;</pre><h3>Configure your Jasypt project key</h3><p>In application.yml</p><pre>jasypt:<br>  encryption:<br>    password: ${JASYPT_PASSWORD} # sourced from environment variable</pre><p>Or, in application.properties</p><pre>jasypt.encryption.password=${JASYPT_PASSWORD}</pre><h3>Encrypt your Secrets</h3><p>You could use the <a href="http://www.jasypt.org/cli.html">Jasypt cli</a> or a similar tool to encrypt sensitive values.</p><pre>jasypt encrypt input=&quot;my-secret-value&quot; password=&quot;your-encryption-password&quot;</pre><p>This will produce an output like:</p><pre>ENC(GO9jHf7yVuP4E7oGzQmYkQ==)</pre><p>Insert the encrypted value into your yaml or properties file:</p><pre>my:<br>  secret:<br>    property: ${ENC(GO9jHf7yVuP4E7oGzQmYkQ==)}</pre><h3>Access decrypted values in code</h3><pre>import io.micronaut.context.annotation.Value;<br>import jakarta.inject.Singleton;<br><br>@Singleton<br>public class MyService {<br>    @Value(&quot;${my.secret.property}&quot;)<br>    private String secretProperty;<br><br>    public void printSecret() {<br>        System.out.println(&quot;Decrypted property value: &quot; + secretProperty);<br>    }<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0339879de9d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>