KIUGWSRIU GH IUSRHGGOIHSRIUGHSROIUGHBSOIRUGHBIO

This commit is contained in:
Daniella 2024-06-09 22:56:13 +02:00
parent dead98e510
commit 2b8244b7e0
Signed by: TudbuT
GPG key ID: B3CF345217F202D3
2 changed files with 4 additions and 4 deletions

View file

@ -120,9 +120,9 @@ public class TypedOutputStream {
}
public byte[] writeByteArray(byte[] bytes) throws IOException {
int i = bytes.length;
writeInt(i);
writeInt(bytes.length);
stream.write(bytes);
stream.flush();
return bytes;
}

View file

@ -45,7 +45,7 @@ public class RawKey extends Key {
* @return encrypted string
*/
public String encryptString(String s) {
return new String(encryptBytes(string.getBytes(StandardCharsets.ISO_8859_1)), StandardCharsets.ISO_8859_1);
return new String(encryptBytes(s.getBytes(StandardCharsets.ISO_8859_1)), StandardCharsets.ISO_8859_1);
}
/**
@ -54,7 +54,7 @@ public class RawKey extends Key {
* @return decrypted string
*/
public String decryptString(String s) {
return new String(decryptBytes(string.getBytes(StandardCharsets.ISO_8859_1)), StandardCharsets.ISO_8859_1);
return new String(decryptBytes(s.getBytes(StandardCharsets.ISO_8859_1)), StandardCharsets.ISO_8859_1);
}
public byte[] encryptBytes(byte[] bytes) {