So for example:
let privateKey = Curve25519.Signing.PrivateKey()
let publicKey = privateKey.publicKey
What I want is the string representation of the private key and public key shown. I can get a base64 String:
privateKey.rawRepresentation.base64EncodedString()
But when I try to get the String of the private key with utf8 encoding, I get nil:
String(data: privateKey.rawRepresentation, encoding: .utf8) // this gives back nil
Topic:
Privacy & Security
SubTopic:
General
Tags: