課程:App資安規劃與實作
NSExceptionAllowsInsecureHTTPLoads NSIncludesSubdomains
資料安全
網路安全
檢測網站憑證用,包含查看SSL pin SSL pin = Base64(SHA256(Public Key))





程式碼安全
Last updated
NSExceptionAllowsInsecureHTTPLoads
NSIncludesSubdomains檢測網站憑證用,包含查看SSL pin
SSL pin = Base64(SHA256(Public Key))




Last updated
// Not good
let key = "123456"
// Not good, it will keep in memory when class initial
let key: String =
{
return "12"+String(30+4)+String(7*8)
}()
// Good
var key: String
{
return "12"+String(30+4)+String(7*8)
}import Foundation
import UIKit
_ = autoreleasepool {
UIApplicationMain(
CommandLine.argc,
UnsafeMutableRawPointer(CommandLine.unsafeArgv)
.bindMemory(
to: UnsafeMutablePointer<Int8>.self,
capacity: Int(CommandLine.argc)),
nil,
NSStringFromClass(AppDelegate.self) //Or your class name
)
}