ursus
10/01/2025, 9:45 PMByteArray instead of a `String`so I can deterministically clear the value from memory, because GC blah blah.
But, when using okhttp interceptor to attach a token as
val tokenString = String(tokenBytes, Charsets.UTF_8) <-----
val newRequest = request.newBuilder()
.header("Authorization", "Bearer $tokenString")
.build()
then it's a moot point right?
Or -- the question -- is there a smarter what of doing this in okhttp?
Or do I just need to accept the transient token in memory (and therefore holding it as ByteArray is mostly pointless)?jessewilson
10/02/2025, 12:25 AMjessewilson
10/02/2025, 12:26 AMjessewilson
10/02/2025, 12:27 AMjessewilson
10/02/2025, 12:28 AMColton Idle
10/02/2025, 12:29 AMjessewilson
10/02/2025, 12:29 AMursus
10/02/2025, 12:31 AMByteArray as the cached thing -> just keep it simple with String?ursus
10/02/2025, 12:32 AMMy preference is to find ways to prevent attackers from seeing your process memoryI can do something about that in user space?
jessewilson
10/02/2025, 12:33 AMursus
10/02/2025, 12:34 AMjessewilson
10/02/2025, 12:39 AMjessewilson
10/02/2025, 12:40 AMursus
10/02/2025, 12:41 AMursus
10/02/2025, 12:41 AM