Some day ?
This commit is contained in:
parent
2d1c67fc65
commit
fa09374178
1 changed files with 3 additions and 3 deletions
|
@ -134,9 +134,9 @@ public class MailConfirmation extends FormResponse {
|
|||
byte[] exLength = ByteBuffer.allocate(4).putInt(exponent.length).array();
|
||||
byte[] modLength = ByteBuffer.allocate(4).putInt(modulus.length).array();
|
||||
System.arraycopy(exLength, 0, key, 11, 4);
|
||||
System.arraycopy(exponent, 0, key, 14, exponent.length);
|
||||
System.arraycopy(modLength, 0, key, 14+exponent.length, 4);
|
||||
System.arraycopy(modulus, 0, key, 18+exponent.length, modulus.length);
|
||||
System.arraycopy(exponent, 0, key, 15, exponent.length);
|
||||
System.arraycopy(modLength, 0, key, 15+exponent.length, 4);
|
||||
System.arraycopy(modulus, 0, key, 19+exponent.length, modulus.length);
|
||||
|
||||
System.out.println("ssh-rsa "+new String(encoder.encode(key)));
|
||||
sendKey.put("key", "ssh-rsa "+new String(encoder.encode(key)));
|
||||
|
|
Loading…
Add table
Reference in a new issue