General :: Why Does Sha1sum Act Differently With The Same Input
Jun 22, 2010
I'm trying to replicate the behavior of the sha1sum executable in some java code, however, in the process I've discovered that sha1sum appears to behave differently given the same input in two scenarios.
Assume input of '12345' without the single quotes and with no newline.
If I put this data into a file (file1) and run sha1sum from the command line:
However, if I do this, I get a different result:
Using the apache commons-codec jar, I'm able to read in file1, get it's contents, and perform a .shahex() on the content and get the first result. However, I need to get the second result (due to legacy code) and I can't figure out why sha1sum is behaving differently, or what grep is doing to the input.
The system is running CentOS 5.4 with sha1sum 5.97
View 3 Replies
ADVERTISEMENT
Nov 2, 2010
Is there anyway to make a hash (or similar), of a folder of files, for data integrity purposes?
I tried with sha1sum, but it cant do it.
Is it possible with some other software?
View 2 Replies
View Related
Nov 5, 2010
Where I can find sha256sum value for installation .iso file of fedora 8 and same others version of fedora
View 2 Replies
View Related
Dec 24, 2009
I understand that md5sum had some faults where it would get the same checksum on 2 different files.What exactly are the benefits of sha256sum compared to sha1sum?
View 1 Replies
View Related
Jan 22, 2010
I downloaded the disc1 iso from [url] and ran it through sha1sum and got 5063ec... (the exact digest is in the virtual console, so I can't copy and paste). But the sum shown in [url] is different, so I removed the iso from my file-system and re-downloaded it. I ran the second download through sha1sum and got the same (wrong) digest as before: 5063ec...
Now, I may not understand fully how sha1 works, but I'm pretty sure if the faulty digest was wrong because of a download error, it would be -very- unlikely that I would get the same wrong digest twice. What is going on here? Is the error server-side or something? Or do I just have terrible luck, or do I not fully understand sha1 sums? Or maybe sha1sum isn't the right command to run?
View 7 Replies
View Related
Sep 27, 2009
I have downloaded both versions of Fedora 11 (Gnome and KDE) to iso files on my hard disk - in Windows XP. I then tried the verification procedure advised in [URL]... section 3.1. I have successfully installed and run hashcalc, with the SHA1 option, and got the following results:
- for the Gnome version : 795b52b3c7b16eba6f2cae055ec894d8648d8095
- for the KDE version : 38ef6c97e29803add28d40add05aa025b6f4c92b.
But I can't find any SHA1SUM files to give me the correct character sequences against which to compare the said results.
View 7 Replies
View Related
Jan 28, 2011
Some time ago I optimised my fonts following dugan's great tutorial. I mostly used Seamonkey to browse so I didn't notice the difference until today I ran Firefox. The font preferences seem to be identical, yet the fonts look differently on each browser. See the attachments (the browser on the left-hand side is Seamonkey)
View 2 Replies
View Related
Jan 16, 2010
I'm trying to generate MD5 hashtext within gnome-terminal that will match that generated by PHP running on a live web server. However, when I hash the same text I get completely different results!
Code:
<?php md5('testing123') ?> ===> 7f2ababa423061c509f4923dd04b6cf1
bash$ echo 'testing123' | openssl md5 ===> bad9425ff652b1bd52b49720abecf0ba
Could this be a character set problem? My terminal is running UTF-8, but even if I change it to ISO-8859-1, the hashtext that's generated is the same. Also tried using md5sum with a text file, saved in various character encodings, but still got the same [wrong] hashtext. I'm running Ubuntu 9.10, tried running the local hash in both gnome-terminal 2.28.1 and the CTRL+ALT+F1 console.
View 2 Replies
View Related
May 29, 2010
Now I tried installing the KDE destop enviremont, the install went just fine but when I try to log into KDE I see the startup screen for a second then everything goes dark.It stays that way in the background i think the desktop is there because the mouse cursor is there, I can move it around but that's all.Does KDE work differently and so can the different xserver be the cause of KDE not working?
View 5 Replies
View Related
Jul 5, 2010
I have plugins for viewing pdf files in both Opera and Firefox. Most pdf files opens embedded in the browser, just as I want. But there is some pdf files I am prompted to save before I can open, just as if the pdf is not recognized as a pdf ? A closer look shows that this pdf's are made using pdf-printers, drawing programs and other non-Adobe programs. It probably misses some Mime coding or other things that Adobe distiller puts into native pdf's ? How can I make the browser/system/plugin/acroread only care about the extension, and not the creator ?
View 2 Replies
View Related
Mar 23, 2010
So I ran a software in both KDE and Gnome respectively and it seems both of them have separate displays. By that I mean, one is displaying a part of the string(a Label) and the other is not displaying the string at all. I will include some relevant information such as the software uses SWT kit. Also the string is displayed perfect in Windows. If it's still not clear I will sum it up in a sentence. I am trying to display a label using SWT kit and, its being displayed correctly on Windows,partially correct on KDE(Half of the string) and not displayed on Gnome.
I have tried GridDat.grabExcessHorizontalSpace=true, but it didn't. how to approach the problem otherwise?
View 3 Replies
View Related
Jul 19, 2011
I have an initscript that behaves slightly differently in the UK than it does in the US. Not a huge issue, but I'd like to know why and how to fix it. I imagine it has something to do with localization, but I'm at a loss as to what it could be, as it's just bash.
in the UK:
Code:
[root@server ~]# /etc/init.d/worker
status}
in the US:
[Code]...
View 6 Replies
View Related
Mar 10, 2011
I have a partition with my firefox profile that when I mount with Pysdm it cannot access. But when I mount normally by right clicking, unmount/mount. I can.
View 5 Replies
View Related
May 14, 2010
The scrollbars you see around the form do not show up on Firefox on Mac or Windows, and don't show up in Opera.Why is Firefox on Slack displaying pages in a slightly different manner?
View 14 Replies
View Related
May 22, 2011
Why does on some computers my terminal window have a background I can see through and on others its a solid color? I have Ubuntu 10.04 installed on 4 machines as base OS and I have many virtual machines of it also. I havent changed the terminal preferences on any of them, however on some computers the terminal background which is purple is not solid in that you can see what is in the background behind it. On others the background is truly solid purple; you can not see behind/through it.
Is there any way to change the terminal window for these machines that are displaying solid to the 'see-thru' way? Ive been using some ebooks and things and really like opening up vi/vim in the purple see-thru window that allows me to write and see the text in the background...however on some machines I can not do this because the terminal display is truly solid. ? All my computers have the same profile settings for terminal..
color = use system theme
background = Solid color
Note - I am making a distinction here between what I call see-thru and the 'transparent' setting in the terminal preferences as this seems to use the desktop background and is different from what I am talking here.
View 5 Replies
View Related
Mar 16, 2010
I am making a backup on an ntfs disk, mounted with:
using the following command:
Running this (or rather the shell script containing it) from the command line is OK, but if I run it as a cron job, I get thousands of messages:
(without line breaks, actually).
These files are all ordinary files made under Windows; the above should read "offici�le stukken", and from the command line it does, but not in cron.
I guess I need to set an environment variable, but which one?
View 1 Replies
View Related
Jul 10, 2010
got a weird one with an upload script.Max upload sizes all set v high (200m)Works fine with 100Mb+ files on the linuxbox, but when I try from my mac via network ip address there seems a fils size limit of somewhere between 15 - 20 Mbis there a place to set remote file sizes differently to localbox settings
View 1 Replies
View Related
Feb 28, 2011
whats the different between Chain RH-Firewall-1-INPUT (2 references) and Chain INPUT (policy ACCEPT)?
View 1 Replies
View Related
Nov 4, 2010
I recently got a real fancy unidirectional microphone, but when I go and use it, something strange happens. The mic is a mono mic, but when I record something, it appears to think it's stereo. Instead of having the same thing on both channels, it puts it all in the left channel, and silence on the right channel.
I tried fiddling with alsamixer. In capture (F4), adjusting the "Capture" device has an effect. However, it doesn't do anything useful. Lowering the right channel to zero does nothing, lowering the left channel to zero creates silence, and disabling the right channel creates silence.
In my System>Preferences>Sound (or pavucontrol, or what-have-you), there are "Analog Stereo Input" and "Analog Stereo Duplex" options there, but no "Analog Mono Input" or "Analog Stereo Output + Analog Mono Input" options (the latter being ideal).
Something interesting, though, if I do this:
Code:
arecord -r 96000 -D pulse -c 1 -vv -V mono /dev/null
it works correctly and outputs on both channels. But if I do
Code:
arecord -r 96000 -D pulse -c 2 -vv -V stereo /dev/null
then it's back to the same behavior. The VU meter on the second command shows the left channel going up and down as I make noise, but the right one always at zero.
The machine does have a crap internal mic built in to the screen bezel. If I do either of the above commands, they both work correctly. The stereo VU shows the same activity for both channels.
The machine is a Eee 1015PED, which has Intel integrated sound. Something probably insignificant is that the mic has a 1/4 inch mono plug, and to get it to plug into the Eee, I needed to get a 1/4 female to 1/8 male adapter. The mic's 1/4 plug is mono (duh) and therefore two-conductor, but the adapter I got is stereo, or three conductor (L, R, GND). I don't know if this is tripping something in hardware to tell it it's stereo or something.
I tried the mic on my desktop, which has a SB Audigy 4 (the non-pro flavor) and that has the "Analog Mono Input" function, so that works fine. Is there some way to turn this stereo input into mono input?
View 1 Replies
View Related
May 1, 2010
I installed Lucid. I used to have Ubuntu 9.10 and to connect my iPod to my laptop's speakers. There was an option in 9.10 in the Sound Options to change the Mic Input into a Line Input. But now unfortunately I can't find it in Lucid have only 2 audio ports in the laptop: Headphone port, Mic port.
View 9 Replies
View Related
May 5, 2010
I would like to use Japanese kana (hiragana, katakana, kanji) on Ubuntu but everything that I've tried to get it set up and running isn't working. The Spanish that I have set up is working perfectly so far.
I've read, the SCIM input program should start up automatically when loading a program, it doesn't. When I have it loaded I cannot seem to get the input working.
View 9 Replies
View Related
Dec 16, 2010
I have created a simple menu driven script for our Operations to take care of the basic monitoring and managing of our production application from the back-end. Now, the script when tested in UAT environment was fine, but when deployed to production it kind of behaved oddly.hen the Operator chooses an option from the menu he is given the output and at the end is prompted to return to the main menu by using ctrl+c. In production, this return does not occur for some strange reason and the program just sits there.The session becomes unresponsive after that and I'm forced to terminated it by closing the PuTTY.I tried enabling the debug mode too (set -x) and still was not able to find any useful hints/trails as to why.
View 5 Replies
View Related
May 29, 2010
I can't get Thai language input to work.
In "language support" I installed Thai, but it remains grayed out.
In "ibus preferences / input method", no languages are shown.
I added:
I added: "ibus-daemon --xim" to startup applications. No effect.
View 1 Replies
View Related
Dec 2, 2010
I am trying to input from a file. The file's layout has three columns; a department number, a first name and a last name, each separated by a space, for example:
Code:
781-89-4271 Amy Balduff
839-98-4072 Brian Becker
846-43-4284 Christina Brendon
[code]....
I need to input the words through separate variables because I will be passing them to other programs as soon as I can figure this out.
View 9 Replies
View Related
May 26, 2010
I have sshed into a linux box and I'm using dvtm and bash (although I have also tried this with Gnu screen and bash). I have two terminals, current /dev/pts/29 and /dev/pts/130. I want to redirect the input from one to the other.And then when I type in /dev/pts/29 the characters I type should show up in /dev/pts/130. However what ends up happening is that every other character I type gets redirected.
View 2 Replies
View Related
Apr 23, 2011
On my first card of ALSA (alsamixer -c 0) I would need to record the Line only.
View 1 Replies
View Related
Sep 3, 2009
I installed SuSe Linux. By the installation I forgot to set the key-board to German. How can I change it now? I don't think I have to re-install the Linux again, right
View 3 Replies
View Related
Nov 5, 2009
I have a section of a script that is supposed to change the filename of similar files in a directory. It works the way I need it to work, except that I would like to input the new filename each time it runs without having to edit the script.
I capture 5-6 images into ~/screenshots. They are labeled Picture 1.png, Picture 2.png, etc. I would like to be able to rename them as Lesson 1.png, Lesson 2.png, and so forth. It works if I hardcode the new NAME (Lesson) into the script, but I want to replace NAME with a variable that I can input at a prompt or pass into the script from another. I have tried setting a variable and replacing "Lesson" with $variable in line #11, but that leaves me with only the extension and no filename.
I have also tried using $1 on the command line:
Here is what I have that works:
How do I get a variable into this script?
View 2 Replies
View Related
Jul 18, 2010
I just bought an M-Audio Keystation 49e off of craigslist and I'm at a bit of a loss on where to start to use it as an input device for muse or rosegarden.
Distro: Debian Lenny
Kernel: 2.6.26-2-686
Laptop: Compaq V5305WM
Everything seems setup, but I'm at a loss on how to use it in the applications. It doesn't have any sound synthesis abilities on the keyboard, it's just an input device. Without the keyboard I usually go this route:
jackd -R -d alsa &
timidity -Oj -iA &
rosegarden
And midi events output sounds and all that jazz. I'm wanting to input notes / record from the keyboard. But still output all sounds in the aforementioned manner. If I could get those to happen while I record that would help a bunch. Maybe it's just too late in the day for me to wrap my brain around it at the moment.
[Code]...
View 7 Replies
View Related
Mar 20, 2010
Now, I have one script called "defcon" defcon gets the current DEFCON level and outputs it using echo.
Code:
#!/bin/bash
DEFCON=`curl -s http://members.tripod.com/~Swat_25/defcon.html | sed -n '/^$/!{s/<[^>]*>//g;p;}' | sed '/^$/d' | grep '[12345]$'`
echo "The current DEFCON level is $DEFCON"
The second script ("tweet") updates my twitter account.
Code:
#!/bin/bash
curl -s -u USER:PASS -d status="$@" http://twitter.com/statuses/update.xml > /dev/null
What I want to do is be able to update my twitter account with the current defcon status (this is really more of a learning thing than something I actually want to be doing). The original script for tweet replaced $@ with $1, but if I use:
tweet `defcon`
it only uses the first word in the string, similarly if I used $2 or $3.So I changed it to $@. The normal function still works, but typing:
tweet `defcon`
updates twitter with nothing.
EDIT I should mention the /dev/null is there to catch the output of curl, otherwise it won't run silently. It still updates twitter normally with the send to /dev/null
View 1 Replies
View Related