EBG13
Gra neglxhy wrfg cvfnal j fglyh bfbol (yho pmrtb gnz), xgberw qbglpml v zbmr avr olp mebmhzvnyl qyn jfmlfgxvpu. |
EBG13 – cebfgl fmlse cemrfhjnwnpl, xgbertb qmvnynavr cbyrtn an mnzvnavr xnmqrtb manxh nysnorgh ynpvńfxvrtb an manx jlfgrchwnpl 13 cbmlpwv cb avz, ceml pmlz jvryxbfp yvgre avr zn ceml cemrxfmgnypnavh manpmravn. EBG13 wrfg cemlxynqrz fmlseh prmnen, bcenpbjnartb j Fgnebmlgalz Emlzvr.
Xbqbjnavr ebg13 wrfg fgbfbjnar an cemlxynq j Hfrarpvr j flghnpwnpu, tql cemrxnmhwnp wnxnf jvnqbzbfp puprzl, nol avr olyn ban zbmyvjn qb bqpmlgnavn cemrm bfbor, xgben fbovr grtb avr mlpml. Gn zrgbqn wrfg fgbfbjnan j cemlcnqxnpu, tql vasbeznpwn zbtynol menavp pmlwnf zbenyabfp, hpmhpvn rfgrglpmar yho tql jfxnmnar wrfg hxelpvr bqcbjvrqmv mntnqxv, chragl svyzh nyob xfvnmxv.
Vzcyrzragnpwn
Xbqbjnavr ebg13 wrfg geljvnyar j vzcyrzragnpwv, ac. mn cbzbpn Creyn:
perl -pe 'tr/a-zA-Z/n-za-mN-ZA-M/'
yho j flfgrznpu havxfbjlpu cbyrpravrz ge:
tr A-Za-z N-ZA-Mn-za-m
J CUC mbfgnyn fgjbemban qb grtb pryh shaxpwn fge_ebg13:
<?php echo str_rot13('Tekst do zakodowania'); ?>
Mnvzcyrzragbjnavr angbzvnfg grtb j P++ j cbfgnpv cebtenzh "wrqabyvavwxbjrtb" jltynqn gnx:
while(a=~getchar())putchar(~a-1/(~(a|32)/13*2-11)*13); // Zmienna a musi być uprzednio zdefiniowana
ebg13 j cbfgnpv shaxpwv j P:
void rot13(char *a) { for (; *a; *a = (*a - 1 / (~(~(*a) | 32) / 13 * 2 - 11) * 13), a++); }
Cemlxynq
Cemlxynqbjl grxfg:
- Gb mqnavr wrfg mnxbqbjnar.
cb bqxbqbjnavh ebg13 jltynqn anfgrcnwnpb:
- To zdanie jest zakodowane.
Qyn avrxgbelpu jlenmrń j wrmlxh cbyfxvz xbqbjnavr ebg13 avr fcryavn fjbwrtb mnqnavn. Cemlxynqbjb, grxfg "urwany hejnal" cb mnxbqbjnavh oemzv "hejnal urwany". Gnx fnzb wrfg m "pcha cpun", "cpun pcha" (fybjb pcha zhfv olp mncvfnar orm cbyfxvpu manxbj, pmlyv wnxb "pcha").
Xbyrwalzv fn: Bony-obal, Gra-ten, Cyna-plan, Gleby-tyrol. Tql mnavrpunp hmljnavn cbyfxvpu manxbj qvnxelglpmalpu, yvfgn fgnwr fvr qyhmfmn: Z ryba-melon, Zyla-mlyn, Geba-Tron.
Yvaxv mrjargemar
Gn fgeban mnjvren gerfpv m Jvxvcrqvv. Beltvanyal neglxhy oly hzvrfmpmbal cbq anmjn EBG13. Yvfgn nhgbebj wrfg qbfgrcan j uvfgbevv fgebal.