Skip to content

Feat: allow for setting client secrets to known value? #853

Answered by sebadob
bkw asked this question in Q&A
Discussion options

You must be logged in to vote

Rauthy uses cryptr under the hood for all values / files encryption. It has to be possible to show client secrets to an admin, so they are encrypted, not hashed. You must use cryptr to encrypt the value, because it creates values with a super tiny header with some important metadata.

Install cryptr

cryptr is not only a crate, but can be installed as an independent CLI. If you have Rust installed on your machine, it's as easy as

cargo install cryptr --features cli

If not, have a look at the precompile binaries I added to the repo.

Make sure the command works with

❯ cryptr -h
simple encrypted (streaming) values

Usage: cryptr <COMMAND>

Commands:
  encrypt  Encryption Module
  decrypt  Decr…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by bkw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #848 on April 17, 2025 16:27.