[1] [[ROT13]]は ASCII の英字にしか効果がなくて、仮名漢字混じりの日本語文
にかけても楽しくないわけですわ。
そこで、 1987年に、 JUNET のニュース組 fj.kanji
とかで議論されて、 ROT13/47 てのが出来上がりました(らしいです)。
[2] >>1 そん時の重要な記事を pick up して
に置いときました。
その更に重要な部分を抜粋すると、
> アスキー/ローマ字コードは,
エスケープ部分を除いて
rot13します.
JIS漢字コードは
エスケープ部分を除いて
rot47します.
> JIS以外の漢字コードをROT13/47する場合は,JISに変換した後に
上記の操作を行う.
これ以外はROT13/47ではない.
なお、この当時の JUNET の文字コードは今の [[ISO-2022-JP]]
と同じです。 [CODE[ESC ( H]] ([[瑞典名前文字]]) は既に使われていません。
[4] ROT13/47 は、暗号化と復号の別がありません。
つまり、二度暗号化すれば元に戻ります。
[7] なお、 ROT13/47 策定の過程で、文字を1つ分だけずらす
ROT1 (を漢字に適用したもの) が出てきてます。
あまり面白くないということで没になりました。
[8] 仕様確定後すぐ、 [[nkf]] に実装されてます。 (今でも使えます。)
[13]
hypnotherapy affiliate programs
[url=http://kmis.grf.hr/user/view.php?id=400&course=1 ]hypnotherapy scripts[/url]
[PRE[
hypnotherapy cum
([[hypnotherapy nanaimo]] [ronlzg@yey.com])
]PRE]
[14]
computer generated machine making music top 100 pop music cbd stock compact disc distribution music cmg emi dvd entertainment
how to put your ipod on manually manage videos and music [url= http://hooooo.php0h.com/tablet174.html ]piano sheets music apologize one republic[/url] publishers of rap music
vince guaraldi charlie brown music free download play where do i get music for sandisk shaker music to fight
kenny rogers christmas music [url= http://users5.nofeehost.com/utkii/auto47.html ]touchtone sheet music[/url] music research studies elementary schools
([[vince vance and the valiants sheet music]] [gregf@djf.com])
[15]
maori music online castle music ltd download pulse mp free music player for digital audio
david downes music [url= http://hooooo.php0h.com/tablet55.html ]tego calderon music videos[/url] india music online
merital family music music identifier music video nice day for ducks
music from bubba ho tep [url= http://yiiij.fr33webhost.com/drugs98.html ]migration of irish music to america[/url] amazon com season of da siccness music brotha lynch hung
([[christmas lights that change with music ohio]] [wiwbg@mwd.com])
[16]
unprotect music free innovative technology model itrr 501 wooden music center music with no lyrics ice ice baby
free christmas cello sheet music [url= http://iwebv.isuisse.com/pill55.html ]music by sissel northern lights cd[/url] music without lyrics ice ice baby
universal music new york city perpetual motion conference music music icons
buck cherry music videos [url= http://yiiij.fr33webhost.com/drugs41.html ]florida state returned music city bowl tickets[/url] deleting music from ipod
([[browse free music]] [jnijg@ioh.com])
[17]
free download bluegrass music down south music christian music craig stuke
organist in music [url= http://yiiij.fr33webhost.com/medicine173.html ]music video police women stockings suspenders[/url] download free mp3 music
how to record music from pandora r type music mp3 how music is used in africa
music by jessie mccartine [url= http://yiiii.yourfreehosting.net/tits51.html ]roc monuoff music[/url] music lyricist
([[watershed christian music]] [dmcdr@akl.com])
[18]
dupage ame single adult ministry free adult gay tv anime adult cartoons
what is a jenny lynn adult bed [url= http://adultparty.pornblink.com/2008/04/30/live-your-anal-fantasies-with-these-uncensored-fuck-videos/ ]have room in my richmond va home for a senior adult[/url] adult entertainment dubai
teaching to multicultural adult classes estimate adult size of schnoodle puppy adult web hosting provider
free adult email exchanges [url= http://adultparty.pornblink.com/2008/04/30/come-into-a-world-of-wild-anal-pleasures-with-our-hq-videos/ ]adult movie with a good storyline[/url] adult chicks
([[adult free entertainment]] [quoos@pjj.com])
[19]
yahoo adult group links adult spank diaper find the xrated adult site having babes with big boobs and asses
adult swim wavs [url= http://xxxadultblog.pimpsblogger.com/note/3152/free-sex-porn-movies-xxx-videos.html ]sin city adult chit chat online[/url] vca studio adult
adult dream vacation parkers prairie mn active adult communities rukia adult flash game
detroit lakes minnesota active adult communities [url= http://xxxadultsex.thumblogger.com/ ]adult lodging georgia mountains[/url] adult party games activities
([[manufacture adult product]] [nmtrh@mzb.com])
[[#comment]]
* 実装について
[3] [[C]] の場合
[PRE[
rotate47(c)
char c;
{
if ((c >= '!')&&(c <= 'O')) return c+47;
if ((c >= 'P')&&(c <= '~')) return c-47;
return c;
}
]PRE]
[5] [[perl]] の場合 (このままでは使い物にならない。参考まで。)
[PRE[
$c =~ tr/\x21-\x4F\x50-\x7E/\x50-\x7E\x21-\x4F/;
]PRE]
[6] 現代的には実装は、場合によっては厄介かもしれません。
一度 Unicode に変換されてしまってたら、復号は困難なことも
少なくないでしょう。
(1978年版または1983年版の JIS 漢字コードなので、
Unicode に対応しない空き区点位置が一杯あります。)
(でも大抵は、第1水準漢字が第2水準漢字に化けるだけ
であって大丈夫なのかもしれませんが。)
いずれにしろ、 Unicode 化されたものを ROT47 するには
表を使って変換するしかないです。止めた方が良いでしょう。
[9] 現代的には、 1990/1997年版とか2000年版の JIS 漢字コード、
あるいは Unicode の文字列を暗号化したいところですが、
上記で定義されたもの「以外はROT13/47でない」って
言ってますからねえ。
ROT13/47 の拡張てことにします? それもねぇ・・・。
「JIS漢字コード」を拡大解釈して、新しい版の JIS 漢字コード
も含まれてた(!)ことにしちまうのがいい鴨。
[[#comment]]
* 識別
[10] [[MIME]] とかで使う時の[[媒体型]]で、 「text/x-rot13-47」 とか
「text/x-rot13-47-48」 が使われたりします (でも [CODE[-48]] て何?)。
けど、それは何か違うと思うのね。
text/html の ROT13/47 はどーなんですか、って。
媒体型は text/* のままで、それに x-rot パラメーターを定義して
使うのが良いと。 (See [[x-rotパラメーター]])
[DEL[
> Content-Type: text/html; x-rot="13/47"
って。
]DEL]
(でも、要素名も ROT13 で化けたらそれは HTML じゃないよなー。
要素の属性とか内容だけ化かす? それはそれで復号が面倒。
HTML に ROT13/47 なんて、やめましょーよ。)
(それとも、化けてなんぼだから、気にせず要素名とかも化かすのかな?)
[11] text/* 以外の媒体型に適用するのは、絶対に止めた方が良いと思われます。
(だから、 Content-Transfer-Encoding や Content-Encoding にするべきではない。)
[DEL[
指定方法は冗長だけど、
> Content-Type: text/plain; x-rot="rot13/47"
にしませう。
]DEL]
[12] [[拡張子]]で内容を判別する環境では、 .rot が使われることがあるみたい。
[[#comment]]
* メモ