I have a problem with encrypting a text with an other public key. How do i get the public key from one person, that is a string, in the correct format?
EncryptedMessage always returns nil
if let partnerHeimdall = Heimdall(publicTag: "com.example.partner", publicKeyData: keyData) {
// Transmit some message to the partner
let message = "This is a secret message to my partner"
let encryptedMessage = partnerHeimdall.encrypt(message)
// Transmit the encryptedMessage back to the origin of the public key
}
Hi,
I have a problem with encrypting a text with an other public key. How do i get the public key from one person, that is a string, in the correct format?
EncryptedMessage always returns nil