This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Created by PhpStorm. | |
* User: manus | |
* Date: 2/10/16 | |
* Time: 20:26 | |
*/ | |
include "functions.php"; | |
define("ENDPOINT", "https://api.telegram.org"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Scramble { | |
public static final int SIZE = 624; | |
int seed; | |
int[] buffer = new int[SIZE]; | |
int ix = 0; | |
public Scramble(int seed) { | |
this.seed = seed; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class RC4 { | |
private final byte[] S = new byte[256]; | |
private final byte[] T = new byte[256]; | |
private final int keylen; | |
private int i = 0, j = 0, k, t; | |
public RC4(final byte[] key) { | |
if (key.length < 1 || key.length > 256) { | |
throw new IllegalArgumentException( | |
"key must be between 1 and 256 bytes"); | |
} else { |