Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
confused prompt after hashalot sha512
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Jointy
Tux's lil' helper
Tux's lil' helper


Joined: 23 Dec 2005
Posts: 142
Location: Saarbrücken

PostPosted: Tue Aug 22, 2006 3:03 pm    Post subject: confused prompt after hashalot sha512 Reply with quote

Hy @ll,

before I will open a bug report I want to ask if this is a known error.

as passphrase enter the word "test"

Code:

plato ~ # hashalot sha512
Enter passphrase:
î&°ÝJ÷çIªŽãÁ
²≥Á…ø áÕøOˆ¼ˆÖπ72ÃÌ_©­Ž⎺Wõ (¨ÿ⎻┌▒├⎺ · #
⎻┌▒├⎺ · #


_________________
[Host: Arko]
ASUS G1S
http://gentoo-wiki.com/HARDWARE_Asus_G1S
[Host: Pandora]
PIII 1Ghz (133) / 512MB
1x40GB & 60GB (mdRAID1)
Hardened Stage 1 Server
[Host: Plato]
verkauft (OpenSuse 11.0)
Back to top
View user's profile Send private message
phajdan.jr
Retired Dev
Retired Dev


Joined: 23 Mar 2006
Posts: 1777
Location: Poland

PostPosted: Tue Aug 22, 2006 6:03 pm    Post subject: Reply with quote

Try that (same passphrase):

Code:

$ /usr/sbin/hashalot sha512 -x
Enter passphrase:
ee26b0dd4af7e749aa1a8ee3c10ae9923f618980772e473f8819a5d4940e0db27ac185f8a0e1d5f84f88bc887fd67b143732c304cc5fa9ad8e6f57f50028a8ff


edit:
explanation:
man hashalot wrote:

If the -x option is given then the hash will be printed as a string of
hexadecimal digits.
Back to top
View user's profile Send private message
Jointy
Tux's lil' helper
Tux's lil' helper


Joined: 23 Dec 2005
Posts: 142
Location: Saarbrücken

PostPosted: Wed Aug 23, 2006 11:46 am    Post subject: Reply with quote

I knew that, too ;)

But that wasn't my question. I wanted to know why this happens without the "-x" parameter.

I think that the returned string has control characters for the term to set new font or something else.

What is the right answer ???

regard
Jointy
_________________
[Host: Arko]
ASUS G1S
http://gentoo-wiki.com/HARDWARE_Asus_G1S
[Host: Pandora]
PIII 1Ghz (133) / 512MB
1x40GB & 60GB (mdRAID1)
Hardened Stage 1 Server
[Host: Plato]
verkauft (OpenSuse 11.0)
Back to top
View user's profile Send private message
phajdan.jr
Retired Dev
Retired Dev


Joined: 23 Mar 2006
Posts: 1777
Location: Poland

PostPosted: Wed Aug 23, 2006 12:57 pm    Post subject: Reply with quote

Jointy wrote:
I think that the returned string has control characters for the term to set new font or something else.


You're right. I think it may be useful if you want to get a raw string of bytes in your program. It's probably not intended to be used in a shell. Anyway I wouldn't call it a bug.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum