I want to convert a string to Base64. I found answers in several places, but it does not work anymore in Swift. I am using Xcode 6.2. I believe the answer might be work in p
Swift 4.2
"abcd1234".data(using: .utf8)?.base64EncodedString()