trivial encoder

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

first line: 'encode' or 'decode'

encode:
char -> 2-digit hex

decode:
2-digit hex -> char

Options

exec is denied

now post-mortem time, all source codes will be revealed

Sample input:_

encode
abcDIOEH(ASUD9*U09u809ihiudhsadij)£$I()!))

Sample output:

61626344494F45482841535544392A55303975383039696869756468736164696A29C2A324492829212929

Sample input:_

decode
61626344494F45482841535544392A55303975383039696869756468736164696A29C2A324492829212929

Sample output:

abcDIOEH(ASUD9*U09u809ihiudhsadij)£$I()!))

Sample input:_

encode
spfu9)(8j08e90&Q$H;2~(F£&$(*J&(RJE(J*()WEJRKU()*ECJKRU(*WEYRCHUIEWCRHNIURHCOIMEOIUJMEoiAA)()AS90348093834957349573489579*W7(*U(*ASdjASIODMJIOCUNUFIHWNIRUHWEUIRH£(*$(U(*du9uf98dsfu)(SDFU(*RJHUIOWJME XOIJMOIAJ(MD<)(ASDU*9934793824

Sample output:

73706675392928386A3038653930265124483B327E2846C2A32624282A4A2628524A45284A2A282957454A524B5528292A45434A4B5255282A574559524348554945574352484E49555248434F494D454F49554A4D456F694141292829415339303334383039333833343935373334393537333438393537392A5737282A55282A4153646A4153494F444D4A494F43554E55464948574E49525548574555495248C2A3282A242855282A6475397566393864736675292853444655282A524A4855494F574A4D4520584F494A4D4F49414A284D443C2928415344552A39393334373933383234A

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1yowa690.09122008/04/24 05:03:130B / 34B / 34B
2shinh700.15452008/04/24 03:29:030B / 31B / 39B
3tabasa1230.22332008/04/21 16:03:370B / 68B / 54B
4murky-satyr620.11172008/08/16 13:36:360B / 20B / 41B
5ksk640.22382008/06/01 15:40:300B / 25B / 37B
6leonid640.16912008/07/17 16:32:260B / 24B / 40B

Perl _

RankUserSizeTimeDateStatistics
1ySas500.09522008/05/05 01:50:250B / 22B / 28B
2ais523(rand one letter to fix bug in examples)560.09032008/05/02 01:37:030B / ?B / ?B

Python _

RankUserSizeTimeDateStatistics
1zetamatta1060.28072008/04/22 07:56:520B / 64B / 39B
2Hendrik1640.15932008/05/03 06:01:106B / 101B / 44B
3Hendrik (bug in ex3)1640.17962008/05/03 06:02:056B / 101B / 44B

PHP _

RankUserSizeTimeDateStatistics
1daira1050.37592008/04/23 10:42:440B / 58B / 47B
2pooq1020.36102008/10/07 13:36:520B / 54B / 48B

Scheme _

RankUserSizeTimeDateStatistics
1murky-satyr1291.01032008/07/05 12:07:210B / 75B / 48B

Io _

RankUserSizeTimeDateStatistics
1murky-satyr1672.63962008/05/01 04:19:052B / 107B / 51B

JavaScript _

RankUserSizeTimeDateStatistics
1murky-satyr1460.06312008/04/28 09:41:202B / 93B / 50B
2yowa1650.11392008/04/24 20:39:460B / 99B / 64B
3REM1850.08272008/04/24 12:54:440B / ?B / ?B
4murky-satyr1360.14072008/05/15 04:29:000B / 77B / 57B
5nanto_vi1460.06722008/05/15 00:46:230B / 81B / 63B

Lua _

RankUserSizeTimeDateStatistics
1murky-satyr1310.02712008/06/03 02:40:532B / 81B / 47B

Smalltalk _

RankUserSizeTimeDateStatistics
1murky-satyr1560.57692008/04/22 01:38:382B / 108B / 42B

BASIC _

RankUserSizeTimeDateStatistics
1pooq1280.14172008/04/22 17:00:580B / 76B / 44B

Erlang _

RankUserSizeTimeDateStatistics
151b2421.29942008/04/25 02:42:210B / 125B / 108B
251b2191.01452008/06/26 21:37:531B / 93B / 118B

J _

RankUserSizeTimeDateStatistics
1pooq940.23632008/04/29 15:44:180B / 39B / 52B

C _

RankUserSizeTimeDateStatistics
151b910.06262008/04/23 21:06:170B / 44B / 47B

D _

RankUserSizeTimeDateStatistics
151b1210.02632008/04/24 20:41:380B / 66B / 52B

OCaml _

RankUserSizeTimeDateStatistics
1ksk1250.11532008/04/30 21:57:290B / 78B / 42B
2m.ukai1660.20952008/04/25 19:55:380B / 114B / 44B

Haskell _

RankUserSizeTimeDateStatistics
1notogawa1840.05072008/04/22 22:23:290B / ?B / ?B

AWK _

RankUserSizeTimeDateStatistics
1nn1550.02072008/06/21 20:28:230B / 89B / 65B

Bash _

RankUserSizeTimeDateStatistics
1eban580.10762008/04/25 22:44:580B / 26B / 20B

Postscript _

RankUserSizeTimeDateStatistics
1yshl(bin)731.18912008/04/22 12:40:5137B / 21B / 15B
2yshl1431.27002008/04/22 12:40:380B / 109B / 20B

z80 _

RankUserSizeTimeDateStatistics
1kodera520.73452009/04/18 02:04:3538B / 8B / 5B

Vim _

RankUserSizeTimeDateStatistics
1nn910.34642010/10/12 22:06:569B / 46B / 34B

goruby _

RankUserSizeTimeDateStatistics
1leonid430.37762008/08/16 12:36:000B / 17B / 25B
2murky-satyr430.37512008/08/18 06:09:000B / 18B / 24B

Groovy _

RankUserSizeTimeDateStatistics
1nn17811.79372008/05/05 01:38:140B / 109B / 67B
2murky-satyr14911.80812008/05/09 06:45:160B / 84B / 64B
3nn17211.74922008/05/08 13:43:430B / 106B / 63B

Language Ranking_

RankLangUserSizeScore
1gorubyleonid4310000
2PerlySas508600
3z80kodera528269
4Basheban587413
5Rubymurky-satyr626935
6Postscriptyshl(bin)735890
7C51b914725
8Vimnn914725
9Jpooq944574
10PHPpooq1024215
11Pythonzetamatta1064056
12D51b1213553
13OCamlksk1253440
14BASICpooq1283359
15Schememurky-satyr1293333
16Luamurky-satyr1313282
17JavaScriptmurky-satyr1363161
18Groovymurky-satyr1492885
19AWKnn1552774
20Smalltalkmurky-satyr1562756
21Iomurky-satyr1672574
22Haskellnotogawa1842336
23Erlang51b2191963

return top