Password encoder

108 views
Skip to first unread message

Dip Giri

unread,
Apr 11, 2021, 2:31:02 AM4/11/21
to Quarkus Development mailing list
HashingStrategy.load().hash("sha512",null, "abc$23",password);

i used vertx password hashing to encrypt password but when this code execute from quarkus native image it show an error

Error : sha512 algorithm is not available.

clement escoffier

unread,
Apr 11, 2021, 4:14:06 AM4/11/21
to dipakgir...@gmail.com, Quarkus Development mailing list
Hello,

You may need to include all the security classes in your native image.
Try with quarkus.native.enable-all-security-services=true.

Clement

--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/7ccd47db-5e22-4787-8132-68ec02ecbd8an%40googlegroups.com.

Paul Carter-Brown

unread,
Apr 11, 2021, 5:01:37 AM4/11/21
to clement....@gmail.com, dipakgir...@gmail.com, Quarkus Development mailing list
Off topic but it's not secure to use a sha hash for password hashing. Ideally you should use something with a high compute overhead and different salt per password. E.g. bcrypt

Reason being that rainbow tables can easily reverse direct hashes.

Reply all
Reply to author
Forward
0 new messages