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
asn1ParsingFailed Couldn't parse the ASN1 key data. Please file a bug at https://goo.gl/y67MW6
But the next code is working:
guard
let publicKeyData =Data(base64Encoded: publicKey),let publicKeyPem =String(data: publicKeyData, encoding:.utf8)else{print("Can't decode base64")return}tryPublicKey(pemEncoded: publicKeyPem)// is working
The text was updated successfully, but these errors were encountered:
MarkParker5
changed the title
Base64 Decoding Failed
Base64 Decoding Failed (asn1ParsingFailed)
Jul 21, 2023
I have the base64-encoded public key
When I am trying:
It throws error:
But the next code is working:
The text was updated successfully, but these errors were encountered: