TrustKit-Android
TrustKit-Android copied to clipboard
Dynamic network security config pin set keys
Currently, I configure pin sets in the network security config file using TrustKit. However, I'd like to avoid storing these pins in the file to enhance security. Is there a way to programmatically provide the pin sets to TrustKit in Kotlin code during runtime, eliminating the need for them in the config file?
<pin-set>
<pin digest="SHA-256">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=</pin>
<pin digest="SHA-256">BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB=</pin>
</pin-set>