You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Complex use case example incorrectly uses the API.
Appears to use outdated X509PublicKey() rather than publicKeyDataX509()
Proposed Complex use case:
letlocalHeimdall=Heimdall(tagPrefix:"com.example")
if let heimdall = localHeimdall, publicKeyData = heimdall.publicKeyDataX509(){varpublicKeyString= publicKeyData.base64EncodedStringWithOptions(.allZeros)// If you want to make this string URL safe,// you have to remember to do the reverse on the other side later
publicKeyString = publicKeyString.stringByReplacingOccurrencesOfString("/", withString:"_")
publicKeyString = publicKeyString.stringByReplacingOccurrencesOfString("+", withString:"-")println(publicKeyString)// Something along the lines of "MIGfMA0GCSqGSIb3DQEBAQUAA..."// Data transmission of public key to the other party}
The text was updated successfully, but these errors were encountered:
The Complex use case example incorrectly uses the API.
Appears to use outdated
X509PublicKey()
rather thanpublicKeyDataX509()
Proposed Complex use case:
The text was updated successfully, but these errors were encountered: