Fix dependencies

This commit is contained in:
Dave Syer
2023-06-28 14:46:08 +00:00
parent f0ccaf01ac
commit e090bd234f
2 changed files with 2 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ public class EncryptorFactory {
TextEncryptor encryptor;
if (data.contains("RSA PRIVATE KEY")) {
encryptor = new RsaSecretEncryptor(data);
encryptor = new RsaSecretEncryptor(data.replaceAll("\\n *", ""));
}
else if (data.startsWith("ssh-rsa") || data.contains("RSA PUBLIC KEY")) {
throw new KeyFormatException();