improvement: Limit the max lines of RSA private key to 24

This commit is contained in:
Artem Chepurnoy 2024-11-19 15:24:40 +02:00
parent 464cbaad4a
commit 2df62a995a
No known key found for this signature in database
GPG Key ID: FAC37D0CF674043E
1 changed files with 4 additions and 0 deletions

View File

@ -1015,6 +1015,10 @@ private fun RememberStateFlowScope.oh(
title = translate(Res.string.private_key),
value = sshKey.privateKey,
verify = verify.takeIf { concealFields },
// Private key might be too long to show if you
// select a 4096-bit RSA. There's no point in
// torturing the device rendering that string.
maxLines = 24,
monospace = true,
colorize = true,
elevated = true,