Some day ?

This commit is contained in:
jeffcheasey88 2023-09-09 22:09:13 +02:00
parent 2d1c67fc65
commit fa09374178

View file

@ -134,9 +134,9 @@ public class MailConfirmation extends FormResponse {
byte[] exLength = ByteBuffer.allocate(4).putInt(exponent.length).array(); byte[] exLength = ByteBuffer.allocate(4).putInt(exponent.length).array();
byte[] modLength = ByteBuffer.allocate(4).putInt(modulus.length).array(); byte[] modLength = ByteBuffer.allocate(4).putInt(modulus.length).array();
System.arraycopy(exLength, 0, key, 11, 4); System.arraycopy(exLength, 0, key, 11, 4);
System.arraycopy(exponent, 0, key, 14, exponent.length); System.arraycopy(exponent, 0, key, 15, exponent.length);
System.arraycopy(modLength, 0, key, 14+exponent.length, 4); System.arraycopy(modLength, 0, key, 15+exponent.length, 4);
System.arraycopy(modulus, 0, key, 18+exponent.length, modulus.length); System.arraycopy(modulus, 0, key, 19+exponent.length, modulus.length);
System.out.println("ssh-rsa "+new String(encoder.encode(key))); System.out.println("ssh-rsa "+new String(encoder.encode(key)));
sendKey.put("key", "ssh-rsa "+new String(encoder.encode(key))); sendKey.put("key", "ssh-rsa "+new String(encoder.encode(key)));