Credentials Cache: Added some special characters to improve random key pattern.

This commit is contained in:
Flashdown 2023-08-17 21:19:31 +02:00 committed by GitHub
parent 2c321e303a
commit dfc18ea853
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,7 +84,7 @@ class CredentialsCacheRepository @Inject constructor() {
}
private fun getRandomKey(): String {
val allowedChars = ('A'..'Z') + ('a'..'z') + ('0'..'9')
val allowedChars = ('A'..'Z') + ('a'..'z') + ('0'..'9') + '#!$%=?-_.,*:;+~'
return (1..KEY_LENGTH)
.map { allowedChars.random() }
.joinToString("")