The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: LAS3R on January 16, 2005, 10:08:18 PM

Title: Howto convert?
Post by: LAS3R on January 16, 2005, 10:08:18 PM
How do i convert "6CB8D15B5763A37052DECE48A1A138AE" to "l¸Ñ[Wc£pRÞÎH¡¡8®" in masm?

guess it is hex 2 ascii but not sure!

Title: Re: Howto convert?
Post by: thomasantony on January 17, 2005, 07:38:27 AM
Hi,
  Dunno if this works, but try printing the buffer to console or an edit control

:bdg

Thomas Antony :U
Title: Re: Howto convert?
Post by: hutch-- on January 17, 2005, 07:57:09 AM
Laser,

It depends what toys you are using. I would try converting each 2 characters to a BYTE values first then write it to another memory buffer. Have a look at an algo in the MASM32 library called "hex2bin" as it should be plenty fast enough to do the conversion.
Title: Re: Howto convert?
Post by: LAS3R on January 17, 2005, 08:22:18 AM
Thx for info both of you, i give it try!