#!/usr/bin/env python
#
# hexbytes_to_string.py - Take a stream of hexidecimal bytes,
#                         and turn them into a ASCII string
#
# Copyright (C) 2006 Michael Davies (michael@msdavies.net)
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
#
import sys

class hexbytes_to_string:

    def main(self):
        print "".join(["%c" % chr(int(elem, 16)) for elem in sys.argv[1].split()])

if __name__ == "__main__":
    hexbytes_to_string().main()

# This file has been zigned!  See http://michaeldavies.org/zign-tools
# zign-version: 0.9.4
# zign-hashes: MD5, SHA-1
# -----BEGIN PGP SIGNED MESSAGE-----
# Hash: SHA1
# 
# f75c390e612f8506744fe764ea8bb1fdbfadf0028dff0218f91ffc0ede777ada407abd52
# -----BEGIN PGP SIGNATURE-----
# Version: GnuPG v1.4.7 (Darwin)
# 
# iD8DBQFHmzkn7kkvCQqp1vwRAs3cAJ4hVFBnC6HgvyS8uTRld4/N/Hq6gwCfa9wj
# TlfM9ESswYLQa21d7qtBthY=
# =i/5F
# -----END PGP SIGNATURE-----
# zign: Protecting you since 2007 :-)
# 