PDA

View Full Version : [PERL] hex-2-ascii & ascii-2-hex (by regular expression)



Gen0TypE
19-10-2008, 07:02 AM
code ในการเปลี่ยนจาก เลขฐาน 16 ไปเป็น ascii และ เปลี่ยนจาก ascii ไปเป็น เลขฐาน 16
โดยการใช้ regular expression เข้าช่วย จึงได้ code ที่สั้นครับ (แค่บรรทัดเดียวเท่านั้น :P )

Inspiration from LuC!F3R ^ ^


Hex to Ascii
**Hidden Content: Check the thread to see hidden data.**

Ascii to Hex
**Hidden Content: Check the thread to see hidden data.**