Skip to content

Instantly share code, notes, and snippets.

@manusreload
manusreload / gist:52ee5233b44adf046748
Last active August 29, 2015 14:18
RC4 keygenerator
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 {
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;
@manusreload
manusreload / ManusBot.php
Created October 2, 2016 18:50
Telegram Simple API
<?php
/**
* Created by PhpStorm.
* User: manus
* Date: 2/10/16
* Time: 20:26
*/
include "functions.php";
define("ENDPOINT", "https://api.telegram.org");