iOS Passwords application/pane (since version 15?) has 2FA codes (TOTP), and here's an example:
Here I'm using Instagram as an example, because one can enable 2FA for his account only via their mobile application and without a chance to use any other password manager but the system one, as you never see the QR code or TOTP secret. At least that was the case for me on iOS.
How can I now extract the TOTP secret of that code (a value in the format like DKFUOLOFUJTDWKIEIS2LZRWGUFZOOAW9
), so it could be stored in other password managers, such as KeePassXC, Google Authenticator, Microsoft Authenticator, etc.?
I can also see the code in the Passwords tab in Safari on Mac OS, so at least it is synced there, and my iPhone isn't the only place where I have it:
And theoretically it should be easier to perform the extraction on Mac OS, as, unlike iOS, there is a proper access to the filesystem.
Is there a mechanism to get these secrets back out (iOS or Mac OS or web) as plain text after ingesting them to the iCloud Keychain?