Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Trip-codes

Name: Anonymous 2007-08-15 9:47 ID:rAGjFXj3

What's a good way to generate trip codes like 4chan uses?  Taking the user IP as an argument.

Name: Myself !PsVJOG6VuM 2010-07-14 14:52

testing tripcode

Name: Myself !PsVJOG6VuM 2010-07-14 14:53

k it works xD

Name: !!m8WI8527HARo8u+ 2010-07-19 9:28

gotta try this.

Name: !.oldhAgBl6 2010-07-19 9:30

>>123
failure

Name: !nIgGeriLy6 2010-07-19 15:14

lol tripcodes xD

Name: !bqshU3XRmg 2010-07-19 15:15

testan

Name: Anonymous 2010-07-20 21:13

NIGGERS

Name: !!UcgiL86AyW+Ed2V 2010-07-23 7:09

|trip
| coed

Name: Anonymous 2010-09-18 20:48

i are unpossible to make php to go :(

Name: test !64yiOPaaac 2010-09-19 6:03

test

Name: !!88lQwySH2VQxcPJ 2010-09-29 17:19

Test

Name: !!kdKI5/sF7FGJJ9u 2010-09-29 17:20

Test

Name: !NiGgeRTeSc 2010-10-16 19:04

f

Name: !myothercar 2010-10-16 19:08

less of this

Name: !j8WthE9aME 2010-10-16 19:13

test

Name: Anonymous 2010-10-16 19:13

http://github.com/Cairnarvon/triptools

I don't know why these threads always fill up with idiots testing tripcodes.

Name: Anonymous 2010-10-16 20:31

>>136
because idiots cannot compile C code

Name: Anonymous 2010-10-17 3:08

>>137
You seem to never have studied CS

Name: Anonymous 2010-10-17 14:11

>>138
I'm not sure what you're trying to suggest, but I surely do know what I'm doing. The problem lies in those who do not, who are not coincidentally the very same people who bump every thread with the word "tripcode" in it to do their testing instead of taking the five seconds it takes to compile a tripcode tester. There is positively no reason to test a tripcode in threads like this. It reeks of the precise sort of oblivious narcissism that the concept of anonymity is intended to eliminate.

Name: Fag !!RMKwZKV9TIboFqH 2010-11-22 22:50

What is this?

Name: Name !HELLoFbuMI 2010-11-22 22:54

test

Name: No !!BLWPSBWyYBoKZRP 2010-11-22 22:59

testing

Name: !CUDderuJ96 2010-11-22 23:28

test

Name: sage !sageL4x7a6 2010-11-22 23:30

sage

Name: Anonymous 2010-11-23 14:35

test

Name: Anonymous 2010-11-23 14:36

test

Name: cat !BrF6HmqDk2 2010-11-26 21:49

I be not trippin'

Name: !Zombiec2j. 2010-12-10 16:47

blank?

Name: Anonymous 2011-02-07 3:57

<?php
  $ALPHABET = "0123456789!ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";

function tripcode($ip) {
  $ip = "127.0.0.1";
  $salt = date();
  $crypt = crypt($ip, $salt);
 
  $trip = "";
  for(int i=0; i<strlen($crypt); i++) {
     int idx = ((int) $crypt[i]) % strlen($ALPHABET);
     $trip .= $ALPHABET[idx];
  }

  return $trip;
}
?>

Name: Anonymous 2011-02-07 6:15

>>153
strlen(
ONE WORD, THE FORCED LINEAR TIME OF STRLEN. THREAD OVER

Name: Anonymous 2011-02-07 6:24

dubs

Name: Anonymous 2011-02-07 7:07

>>154

The for loop is linear time as well, so it evens out.

Name: Anonymous 2011-02-07 7:21

>>154
When are going to stop being so aniihurt?

Name: Anonymous 2011-02-07 7:29

>>156
That makes it O(n²).

OMG UNOPTIMIZED

Name: Anonymous 2011-02-07 8:57

value=user IP +salt
tripcode=hash_with_one_algorithm(value)

Name: Anonymous 2011-02-07 9:37

doesn't php hold the length of strings? I am pretty sure it is high level enough to do such task

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List