Credentials Cache: Added some special characters to improve random key pattern.
This commit is contained in:
parent
2c321e303a
commit
dfc18ea853
1 changed files with 2 additions and 2 deletions
|
@ -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("")
|
||||
|
|
Loading…
Reference in a new issue