feat(analytics): add current date and secret salt to analytics hash for improved privacy

This commit is contained in:
Benjamin Bellamy 2022-03-30 16:09:06 +00:00 committed by Yassine Doghri
commit 6f2e7c009c
4 changed files with 64 additions and 21 deletions

View file

@ -25,6 +25,19 @@ class Analytics extends BaseConfig
'analytics-filtered-data' => 'permission:podcasts-view,podcast-view',
];
/**
* --------------------------------------------------------------------------
* Secret Salt
* --------------------------------------------------------------------------
*
* The secret salt is a string of random characters that is used when hashing data.
* Each Castopod instance has its own secret salt so keys will never be the same.
*
* Example:
* Z&|qECKBrwgaaD>~;U/tXG1U%tSe_oi5Tzy)h>}5NC2npSrjvM0w_Q>cs=0o=H]*
*/
public string $salt = '';
/**
* get the full audio file url
*