Erin Clock (g1r1) | 2009-11-30 08:56 |
IL configuration deleter (g1r1) | 2009-11-30 09:08 |
Shaman Japanese Language Pack (g3r1) | 2009-11-30 09:17 |
Simple P2P Messenger (Jasmine) (g3r6) | 2009-11-30 09:21 |
This page is written how to implement the feature to spot imposter
Actually, if you watch a some topic of 2ch, you can find a poster like:
1 名前:Name◆doui./as 2009/05/17(日) 10:06:30.60And, if you spoof to him and post something, everybody finds out that you are imposter because of the following difference:
1 名前:Name◇doui./as 2009/05/17(日) 10:06:30.60
The system, which is like that, is called Hitoriyo Cap in 2ch. Posting the following string as your name:
AAA#BBBthe server will crypt "BBB" with first 2 bytes as salt.
The implementation code is here:
- <?php
- function getTripName($name){
- $after_name=str_replace("@","|",$name]);
- $TripArray=explode("#",$after_name,2);
- if(count($TripArray)>1){
- $salt=substr($TripArray[1],0,2);
- $TripArray[1]=strrev($TripArray[1]);
- $TripArray[1]=crypt($TripArray[1],$salt);
- $TripArray[1]=substr($TripArray[1],-10);
- $after_name=implode("@",$TripArray);
- }
- return $after_name;
- }
- ?>
Unlike 2ch one, This script uses the "reversed" key as salt, because if this script outputs the same of 2ch one, making a lot of thread is expected. Moreover, the glue is different, because "◇" and "◆" is not supported on ASCII; this may cause greeking.
1:Execute the function with the name as a argument.
2:The returned name is string after conversion. Thus, it is used as name
3:Use the string returned by execution of 2 as name
[PageInfo]
LastUpdate: 2010-12-04 12:07:19, ModifiedBy: green_12512
[License]
GNU Free Documentation License
[Permissions]
view:all, edit:login users, delete/config:members