mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-09-22 00:15:41 +00:00
Fix remmina padding
This commit is contained in:
@@ -33,7 +33,7 @@ public class RemminaHelper {
|
||||
}
|
||||
|
||||
var rawPassword = password.getSecretRaw();
|
||||
var toPad = rawPassword.length % 8;
|
||||
var toPad = 8 - (rawPassword.length % 8);
|
||||
var paddedPassword = new byte[rawPassword.length + toPad];
|
||||
System.arraycopy(rawPassword, 0, paddedPassword, 0, rawPassword.length);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user