Trip-codes
1
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.
81
Name:
SomeGuy
2010-01-08 0:59
test.
82
Name:
SomeGuy
!Ug/viy1seM
2010-01-08 1:01
test
83
Name:
Anonymous
2010-01-08 10:03
84
Name:
!JfY1ekq/8k
2010-01-09 11:33
test
86
Name:
!vkPjRZkh2M
2010-01-12 3:36
I made a bunch of codes using vectripper, and all of them seem to work except the one I want to use. when I ran it through a tester, the 2ch hash read "a..TRIpfAg," which was what had been generated, but the 4ch hash read "vkPjRZkh2M," which is what gets displayed. normally these two should match. what do?
87
Name:
Anonymous
2010-01-12 7:05
>>86
what do?
You go back to /b/.
88
Name:
Anonymous
2010-01-12 9:35
>>86
If the tripcode contains a yen mark, replace that with \
89
Name:
!2etTriPfAg
2010-01-12 18:03
test
dcidkfsdifnsdic idckdci dickdcidn cid cidck
91
Name:
Anonymous
2010-01-31 4:54
92
Name:
Anonymous
2010-01-31 15:46
93
Name:
costy
2010-04-25 7:35
<?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;
}
?>
94
Name:
Anonymous
2010-04-25 8:25
OMG I LOVE PHP
95
Name:
Anonymous
2010-04-25 9:32
This is my professional web developer solution :
<%# ip.Reverse(); %>
96
Name:
Anonymous
2010-04-25 11:43
For the record, the way Shiit chan generated the IP-based IDs (as seen in the early posts in this thread) is this:
substr(base64_encode(pack("H*",sha1($_SERVER[REMOTE_ADDR].date("d").SecureSalt()))), 1,8)
Where SecureSalt returns the constant site-wide salt and . is the concatenation operator and not a method call because PHP is beautiful .
The tripcode algorithm is well-known, of course.
97
Name:
Anonymous
2010-04-25 14:12
>>96
$_SERVER considered harmful.
98
Name:
!!b33rvalve
2010-05-15 19:29
testing
99
Name:
Anonymous
2010-05-15 20:13
100
Name:
Anonymous
2010-05-15 22:52
>>99
Go play in
web traffic.
101
Name:
Anonymous
2010-05-16 2:58
102
Name:
we
!eHg13QwJnI
2010-05-22 15:29
u
103
Name:
yiu
!dJNToPBaGk
2010-05-22 15:30
100
104
Name:
!eUgTSiCTIo
2010-06-29 15:29
jdsf
105
Name:
!
!eUgTSiCTIo
2010-06-29 15:29
jdsfktd
106
Name:
Anonymous
2010-06-29 15:34
>>102
Using dictionary words considered harmful.
107
Name:
!GCiXE.XUpw
2010-06-29 15:35
jdfhtrhbsert
108
Name:
!citto.FDb.
2010-06-29 15:43
dfhnrstjrtdsgg
testing tripcode
110
Name:
Anonymous
2010-06-29 15:48
>>107-109
Go play in traffic.
111
Name:
!citto.FDb.
2010-06-29 15:52
sucess
112
Name:
Anonymous
2010-06-29 17:47
Trip codes are for faggots.
113
Name:
Anonymous
2010-06-29 20:56
>>112
Xarn is not a faggot, so
back to /b/, please
114
Name:
!OLdFag/jr2
2010-07-06 9:12
ohai der
115
Name:
Anonymous
2010-07-06 9:14
>>113
Xarn is not defined by his tripcode.
back to rotahall, please
116
Name:
Anonymous
2010-07-06 14:06
>>113
o hai thar
Xarn
(i see what you did there)
117
Name:
Anonymous
2010-07-09 9:25
How do you make a custom one like yours, though?
118
Name:
Anonymous
2010-07-09 12:58
Xarn is not a faggot
Xarn has admitted to his shameful sexual perversions openly on his blog.
119
Name:
x y
!!twzEE37BcXV2Hk6
2010-07-09 18:57
k
120
Name:
!Nyoron4t6M
2010-07-13 0:47
o hi
Newer Posts