I think you're likely hitting ARTEMIS-4154 [1].

Justin

[1] https://issues.apache.org/jira/browse/ARTEMIS-4154

On Wed, Apr 23, 2025 at 8:21 AM Shiv Kumar Dixit
<shivkumar.di...@it.eurofinseu.com.invalid> wrote:

> Hi team,
> We are facing an issue in using artemis mask/unmask for certain literals.
> When such literals are present as part of password, unmasking is resulting
> in generation of garbage characters. Artemis version is 2.37.0.
>
> Working case:
> artemis mask MtWr35yhVOqbvR7hfqcw
> result: -d3cac5bbbf2d5d18204c051d9abcc94f6bde2fde496c7d5
>
> System.out.println("Unmasked value for " + masked + " is " +
> PasswordMaskingUtil.resolveMask(masked,
> "org.apache.activemq.artemis.utils.DefaultSensitiveStringCodec"));
> Unmasked value for ENC(-d3cac5bbbf2d5d18204c051d9abcc94f6bde2fde496c7d5)
> is MtWr35yhVOqbvR7hfqcw
>
> Non-working case:
> artemis mask eesblDcBz4MfiQWKW3as
> result: -189b78c4b49afd300a3804336bd41d5b6b3f804b4d04b1
>
> System.out.println("Unmasked value for " + masked + " is " +
> PasswordMaskingUtil.resolveMask(masked,
> "org.apache.activemq.artemis.utils.DefaultSensitiveStringCodec"));
> Unmasked value for ENC(-189b78c4b49afd300a3804336bd41d5b6b3f804b4d04b1) is
> W??4"??;z4MfiQWKW3as
>
> Can you please help us in identifying the reason for such error?
>
> Thanks
> Shiv
>

Reply via email to