Skip to content

Asmaa933/SecureKeys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SecureKeys

A Demo trying to secure secrets in the app using configuration settings file:

STEPS:-

1- Add new configuration file (KEYS.xcconfig) and add keys in it

Screen Shot 2021-12-16 at 8 00 28 PM

2- Add *.xcconfig to your gitignore file to ignore configuration

3- Add the configuration file to configuations in info tap

4- Add api key to info.plist

Screen Shot 2021-12-16 at 8 00 43 PM

5- get api key and present it in label

if let apiKey = Bundle.main.infoDictionary?["API_KEY"] as? String {
apiLabel.text = apiKey
}

RESULT:-

PROBLEMS: -

  • Keys are stored in your device only and you may lost them if you delete them by mistake or your device is damaged
  • You need to add keys manually and add it to configurations-step 3- every time you clone the project as we didn't upload KEYS file to GitHub.

REFERENCE:

https://medium.com/swift-india/secure-secrets-in-ios-app-9f66085800b4

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages