help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Hash function doesn't work


From: Allen.Windhorn
Subject: RE: Hash function doesn't work
Date: Thu, 30 Mar 2017 20:53:53 +0000

Steven,

> -----Original Message-----
> From: Help-octave [mailto:help-octave-
> 
>...  For instance, if I type the following, at an Octave prompt:
> 
> hash ("md5", "abc")
> 
> Octave returns:
> 
> error: 'hash' undefined near line 1 column 1
> 
> As you can see, I'm using the exact example which is shown in the link.  So
> why does Octave return an error message?
> At the bottom of the link, it says that this is an Octave package.  Doesn't
> that mean that it's already installed in Octave?  If not, then how would I
> install it?

hash appears to be in the io package.  I have that installed already, but if
you don't, then type:

pkg install  -forge io

then

pkg load io

and try it again.  I get:

>> pkg load io
>> hash('md2', "foo")
ans = d11f8ce29210b4b50c5e67533b699d02

Regards,
Allen



reply via email to

[Prev in Thread] Current Thread [Next in Thread]