Encryption of the API token #2969
-
Hello there! So how do i get from "otz2134pda35uDhgGJHi2134uasdhgfpiuziu" to "abc"? |
Beta Was this translation helpful? Give feedback.
Answered by
schrej
Jan 4, 2021
Replies: 2 comments 1 reply
This comment was marked as off-topic.
This comment was marked as off-topic.
-
The token that you see in the database is encrypted using the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
trenutoo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The token that you see in the database is encrypted using the
APP_KEY
defined in the.env
file. It can be decrypted using thedecrypt()
method of theEncrypter
that is part of laravel, see here for an example.