Tutorial

 :: ROT13 :: (1052 Reads)

Posted by Atamyrat on Sunday, April 23, 2006 - 11:18 PM

ROT-13 gaty sada Caesar sifrleme metody. Koplenc forumlarda yada web sahypalarda bir teksti bukmak ucin ulanyarlar. Kitaplarda matalyn jogaby bas-asak yazylshy yali, web sahypalarda hem tekstler rot13-lenyar.
Men rot13-lenen tekstlere kop dush geldim, belki siz hem gorensiniz. Bu makalada azajyk rot13 algoritmine, nahili acmalylygyna, taryhyna we ulanylyan yerlerine degip gecmekci.
ROT13 (Rotate by 13 places, 13 yer pyrla) bir sada Casear sifrleme yolydyr. Alfawitdaki harplar yazilyar we asagyndan 13 gezek gaydirilan alfawit yazilyar we her harp asagyndaky harp bilen calsirilyar. A harpy N bolyar, B harpy O bolyar we seyle dowam edip gidyar.
Casear sifrleme metody TurkmeNNet-in basdaky makalalarynyn birinde dusundirilpdi. ROT13-de Casear metodyny 13 acar bilen ulanaymaly. 13 bolmagynyn sebabi, acmak/yapmak ucin menzesh kod gerek.
Elbetde bu algoritmin hic hili goragy yok we gaty gowsak.

Her harpy degisli harp bilen calsaymaly.

meselem, HELLO sozi URYYB bolyar.

Unix/Linux tr komandasy bilen goni rot13-lap bilersiniz:
<pre>
tr A-Za-z N-ZA-Mn-za-m
</pre>

C-de kodyny yazyp gordim.
<pre>/* rot13 */

#include <stdio.h>
#include <string.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
char map[
256];
char msg[
1024];

for(int i=
0; i<256; i++) map[i] = i;
for(char c=
'a'; c<='z'; c++) map[c] = (((c-'a')+13)%26)+'a';
for(char c=
'A'; c<='Z'; c++) map[c] = (((c-'A')+13)%26)+'A';

gets(msg);
for(char *c = msg; *c; c++) *c = map[*c];
printf(
"%s\n", msg);

system(
"pause");
return
0;
}
</pre>

Has kop maglumat ucin ROT13 - Wikipedia
Send this story to someone Printer-friendly page

ROT13 | Log-in or register a new user account | 1 Comment
Comments are statements made by the person that posted them.
They do not necessarily represent the opinions of the site editor.

Re: ROT13

(Score: 0)
by Anonymous on Jun 28, 2006 - 12:41 AM
Shu yerdai habary okap gorun...
http://it.slashdot.org/article.pl?sid=06/06/28/0518215

An anonymous reader writes "Stung by a series of data losses or disclosures at federal agencies over the past month, the White House is requiring all agencies to follow new guidelines when allowing employees to carry sensitive data on laptops or access the information from afar, according to the Washington Post. From the article: 'To comply with the new policy, agencies will have to encrypt all data on laptop or handheld computers unless the data are classified as "non-sensitive" by an agency's deputy director. Agency employees also would need two-factor authentication -- a password plus a physical device such as a key card -- to reach a work database through a remote connection, which must be automatically severed after 30 minutes of inactivity. Finally, agencies would have to begin keeping detailed records of any information downloaded from databases that hold sensitive information, and verify that those records are deleted within 90 days unless their use is still required.'"

--------
Bu hem commentler:


Wow...
(Score:3, Funny)
by nexcomlink (930801) Alter Relationship on Wednesday June 28, @01:27PM (#15619330)
(http://xelsys.net/)
Why has this not been done before? But let me guess the encryption is ROT13.
[ Reply to This ]

*
Re:Wow...
(Score:4, Funny)
by neuro.slug (628600) Alter Relationship <(moc.liamtoh) (ta) (__oruen)> on Wednesday June 28, @01:45PM (#15619379)
Incorrect. Upper management thought that ROT13 was so good, they're using it twice for encryption.