KIUGWSRIU GH IUSRHGGOIHSRIUGHSROIUGHBSOIRUGHBIO
This commit is contained in:
parent
dead98e510
commit
2b8244b7e0
2 changed files with 4 additions and 4 deletions
|
@ -120,9 +120,9 @@ public class TypedOutputStream {
|
||||||
}
|
}
|
||||||
|
|
||||||
public byte[] writeByteArray(byte[] bytes) throws IOException {
|
public byte[] writeByteArray(byte[] bytes) throws IOException {
|
||||||
int i = bytes.length;
|
writeInt(bytes.length);
|
||||||
writeInt(i);
|
|
||||||
stream.write(bytes);
|
stream.write(bytes);
|
||||||
|
stream.flush();
|
||||||
return bytes;
|
return bytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ public class RawKey extends Key {
|
||||||
* @return encrypted string
|
* @return encrypted string
|
||||||
*/
|
*/
|
||||||
public String encryptString(String s) {
|
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
|
* @return decrypted string
|
||||||
*/
|
*/
|
||||||
public String decryptString(String s) {
|
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) {
|
public byte[] encryptBytes(byte[] bytes) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue