TrustKit-Android icon indicating copy to clipboard operation
TrustKit-Android copied to clipboard

Dynamic network security config pin set keys

Open batuhangoktepe opened this issue 11 months ago • 0 comments

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>

batuhangoktepe avatar Mar 08 '24 13:03 batuhangoktepe