improvement: Limit the max lines of RSA private key to 24
This commit is contained in:
parent
464cbaad4a
commit
2df62a995a
|
@ -1015,6 +1015,10 @@ private fun RememberStateFlowScope.oh(
|
||||||
title = translate(Res.string.private_key),
|
title = translate(Res.string.private_key),
|
||||||
value = sshKey.privateKey,
|
value = sshKey.privateKey,
|
||||||
verify = verify.takeIf { concealFields },
|
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,
|
monospace = true,
|
||||||
colorize = true,
|
colorize = true,
|
||||||
elevated = true,
|
elevated = true,
|
||||||
|
|
Loading…
Reference in New Issue