T
T
teodor7teodor72021-07-29 12:37:27
PHP
teodor7teodor7, 2021-07-29 12:37:27

To store access keys in a DB or in configs?

There is a script that has access to stores using the token key. There are several such stores. Where is it better to store this token in terms of security, in the database or create a separate config, and store only the key ID from the config in the database?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Frolov, 2021-07-29
@Digiport

Of course in the config. And store the config in encrypted form on a separate server with limited access by IP. Get a config via API with a temporary token.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question