Skip to content

Instantly share code, notes, and snippets.

View ManusBot.php
<?php
/**
* Created by PhpStorm.
* User: manus
* Date: 2/10/16
* Time: 20:26
*/
include "functions.php";
define("ENDPOINT", "https://api.telegram.org");
View gist:9beb18a0ab061ca60ab1
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;
View gist:52ee5233b44adf046748
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 {