kishikawakatsumi / KeychainAccess

Simple Swift wrapper for Keychain that works on iOS, watchOS, tvOS and macOS.
MIT License
7.92k stars 785 forks source link

Tagging Releases #598

Open bstillitano opened 4 months ago

bstillitano commented 4 months ago

Can we please get a release tagged on the latest commit to master? SPM packages that use this one as a dependency are unable to be pulled via their own release tags because of the unstable inclusion of untagged packages.

Rajshah555999 commented 3 months ago

face same issue with live device mode, we can perfectly run in iOS simulator

bstillitano commented 3 months ago

I ended up migrating to auth0/SimpleKeychain

Rajshah555999 commented 3 months ago
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
}

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

bstillitano commented 1 week ago
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

}

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

Create a new issue.