henrinormak / Heimdall

Heimdall is a wrapper around the Security framework for simple encryption/decryption operations.
MIT License
402 stars 68 forks source link

Public Key encryption #32

Closed FabianGroeger96 closed 7 years ago

FabianGroeger96 commented 8 years ago

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

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
}
henrinormak commented 8 years ago

Could you provide me with a reproducible example app? It is super difficult to diagnose the problem from your current description.

henrinormak commented 7 years ago

Closing due to inactivity.