evgenyneu / keychain-swift

Helper functions for saving text in Keychain securely for iOS, OS X, tvOS and watchOS.
MIT License
2.82k stars 345 forks source link

KeychainSwift save Array of [String] #129

Open CodeTeamLabs opened 4 years ago

CodeTeamLabs commented 4 years ago

Guys I wouldn't want to make mistakes but they couldn't find how to save an array of strings inside the KeychainSwift ... does anyone have a solution for this?

evgenyneu commented 4 years ago

Good question. I can think of two ways:

  1. Convert array of strings to a single string in JSON format.

  2. Convert array of strings to Data object.