Skip to content

This function not working on live device but running perfectly on simulator, so please give answer of this function #602

@Rajshah555999

Description

@Rajshah555999

func getPhrase() -> String? {
var unencrypted: String?
do {
guard let encrypted = keychain["userSeedPhrase"] else {
print("Error: Encrypted phrase not found in keychain")
return nil
}
guard let encryptionKey = getPassword() else {
print("Error: Encryption key not available")
return nil
}
print("encrypted...(encrypted)")
unencrypted = try encryption.decryptMessage (encryptedMessage: encrypted, encryptionKey: encryptionKey)
} catch {
print("Decryption Error: (error.localizedDescription)")
}
return unencrypted
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions