Bug 460448

Summary: Last 2 chars of device key are cut off
Product: [Applications] kdeconnect Reporter: Lukas <l.wolf0301>
Component: android-applicationAssignee: Albert Vaca Cintora <albertvaka>
Status: RESOLVED FIXED    
Severity: minor CC: ville.aakko
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Android   
OS: Android 10.x   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Lukas 2022-10-14 19:08:59 UTC
SUMMARY
Last 2 chars of a key displayed after requesting a connection to a computer are cut off on android.


STEPS TO REPRODUCE
1. Open App
2. Select 'Pair new Device' in Navbar
3. Select a device under 'Available Devices'
4. Select 'REQUEST PAIRING'

OBSERVED RESULT
The displayed key in the app is only 62 chars long - the displayed key on the computer is 64 chars long.
The chars seems to be the same. (I'm not able to select and copy them because any idiot started the trend to make text unselectable :person-facepalming: 

EXPECTED RESULT
The displayed keys in the android app and desktop app have the same length.


SOFTWARE/OS VERSIONS:
Windows: N/A
macOS: N/A
Linux/KDE Plasma: Kubuntu 22.04.1
(available in About System)
KDE Plasma Version: 5.24.6
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
KDE Connect Settings Version: 21.12.3
Comment 1 Ville Aakko 2022-11-09 07:17:12 UTC
I can confirm this issue, also on Arch Linux.

This is a bit unnerving since the user can not know if there is an MITM attack in progress.