On Thu, Dec 24, 2009 at 12:17:45PM +0530, Krishna Mohan wrote:
> I?ve used preshared
> key ? ?asdfghjklqwertyuiopzxcv? in Windows XP and the same key converted to
> hexadecimal ?666473616b6a68676577716c757974727a706f690a766378? been used in
> solaris.
> ? 
> I?ve also tried as ?echo ?asdfghjklqwertyuiopzxcv?
> | tr ?d ?\n? | od ?t x?

You're byteswapping.  asdf isn't 66647361, it's 61736466.  You did this on an
x86 box, which stores words in byteswapped (little-endian) order.  See this
blog entry for important safety tips on mistakes like this:

        http://blogs.sun.com/danmcd/entry/endian_independence_not_just_for

You should do this for your od:

        od -tx1

which will spit things out one byte at a time, neatly avoiding byteswapping.

Try again without the byteswapping (and without the newline, you got that
part right).

Dan

Reply via email to