btnguyen2k / swiftutils

Utility library in Swift
MIT License
72 stars 23 forks source link

How to convert data returned from `encryptWithRSAKey` to string? #13

Closed tuononh closed 3 years ago

tuononh commented 3 years ago

i tried String.init(data: d, encoding: .utf8) but it returned nil. When I tries with other encoding it throws some weird characters

I was able to get base64encoded string.