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

Need Assistance regarding network_security_config file

Open microcian opened this issue 2 years ago • 0 comments

Anyone please guide me about the following lines

<domain includeSubdomains="true">www.datatheorem.com</domain>
<!-- Valid pins -->
<pin-set expiration="2018-01-01">
<pin digest="SHA-256">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=</pin>
<pin digest="SHA-256">YLh1dUR9y6Kja30RrAn7JKnbQG/uEtLMkBgFF2Fuihg=</pin>
</pin-set>
 <trustkit-config enforcePinning="false" disableDefaultReportUri="true">
 <report-uri>https://overmind.datatheorem.com/trustkit/report</report-uri>
</trustkit-config>

I never saw SHA-256 in such format (e.g. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=) as normally SHA-256 formed as A2:F4:G6:U7:A2:F4:G6:U7:A2:F4:G6:U7:A2:F4:G6:U7:A2:F4:G6:U7:A2:F4:G6:U7:A2:F4:G6:U7:A2:F4:G6:U7:A2:F4:G6:U7

How can I generate it ? and why here are two SHA's by using this lib I just need to replace the SHA ID and domain only or do I need to do anything else in android code level?

microcian avatar Feb 22 '23 07:02 microcian