RADCRYPT(8) System Manager's Manual RADCRYPT(8)NAME
radcrypt - generate password hash for use with radius, or validates a password hash
SYNOPSIS
radcrypt [-d|--des] [-m|--md5] [-c|--check] plaintext_password [hashed_password]
DESCRIPTION
radcrypt generates a hashed digest of a plaintext password, or can validate if a password hash matches a plaintext password. DES and MD5
hashes are currently supported. When generating a password hash a random salt is generated and applied.
A hashed password can be validated by specifying -c or --check and passing hashed_password after plaintext_password on the command line.
In this case hashed_password will be checked to see if it matches plaintext_password. If so "Password OK" will be printed and the exit sta-
tus will be 1, otherwise "Password BAD" will be printed and exit status will be 0 (Note this is the opposite of a normal successful shell
status).
OPTIONS -d --des
Use a DES (Data Encryption Standard) hash (default). Ignored if performing a password check.
-m --md5
Use a MD5 (Message Digest 5) hash. Ignored if performing a password check.
-c --check
Perform a validation check on a password hash to verify if it matches the plantext password.
EXAMPLES
$ radcrypt foobar
HaX0xn7Qy650Q
$ radcrypt -c foobar HaX0xn7Qy650Q
Password OK
SEE ALSO radiusd(8), crypt(3)AUTHORS
Miquel van Smoorenburg <miquels@cistron-office.nl>
RADCRYPT(8)
Check Out this Related Man Page
PASSWORD_VERIFY(3) 1 PASSWORD_VERIFY(3)password_verify - Verifies that a password matches a hashSYNOPSIS
boolean password_verify (string $password, string $hash)
DESCRIPTION
Verifies that the given hash matches the given password.
Note that password_hash(3) returns the algorithm, cost and salt as part of the returned hash. Therefore, all information that's needed to
verify the hash is included in it. This allows the verify function to verify the hash without needing separate storage for the salt or
algorithm information.
PARAMETERS
o $password
- The user's password.
o $hash
- A hash created by password_hash(3).
RETURN VALUES
Returns TRUE if the password and hash match, or FALSE otherwise.
EXAMPLES
Example #1
password_verify(3) example
<?php
// See the password_hash() example to see where this came from.
$hash = '$2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq';
if (password_verify('rasmuslerdorf', $hash)) {
echo 'Password is valid!';
} else {
echo 'Invalid password.';
}
?>
The above example will output:
Password is valid!
SEE ALSO password_hash(3), userland implementation.
PHP Documentation Group PASSWORD_VERIFY(3)
Hi All
I have a requirement where using a script I grep a file for string (KSG/Password in below ) , get the next line which is the password and I need replace the whole line of unknown special charecters (encrypted password) with another line as given below .
As in below i need to get... (12 Replies)
I am passing a string as argument. Need to check if it contains "-".
If it contains "-" then check if it contains "-r" .If Yes then print some message else check if it contains "-t".If yes print some message. How this check can be done using shell script?
How I can do this by using IF OR... (7 Replies)
Hi all,
I have a server in the office that we connect to via telnet. Can anyone explain please how i can encrypt the password so it cannot be picked up in plain text by sniffing software like WireShark, etc.?
I'm not very experienced in Unix, so any ideas or even links would be great.
... (5 Replies)
Hi Solaris's expert
I need to change user password on Solaris10 2 servers.
With the same password I can change it just only one.
Try to check everything but not found difference??
password pattern: abcdeFgh9Jk
server1 check all characters but server2 check only first 8 characters.Why??... (10 Replies)
Hie Friends,
I need your help once again.
I have 77 “password protected” winzip files in linux/unix server. I want to decrypt it through an automated script. Password of every file is same and it is mhd*tt.
Please help me.
Usually I unzip it as follows, manually one by one.
unzip <file name> ... (6 Replies)
Hi,
I have the below sample code to hash the input number read from file. File will have 16 to 19 digit number and executable hash the number using some logic and returns the hashed value. Each digit in the 16 digit number is converted to a 4 byte value. That if the input is 16digit integer, the... (6 Replies)
Does anyone have any experience with this? I am trying to figure out how it works and how you pass the password on within a script so that you aren't prompted for a password. (5 Replies)
Hi there,
I found out a very strange behavior.
If I call ssh, my password will be invisible when I'm prompted to type it:
santiago@cassiopee:~$ ssh titan.caoba.fr "echo connected"
santiago@titan.caoba.fr's password: <--- password is hidden when typed
connected
santiago@cassiopee:~$ If I... (5 Replies)
hi, all
I just started on new box where I have to diff passwd working perfectly on the very same account/user. I see that shadow was added recently (I'm not a root in there), I see 'x' in passwd. Not sure how it should work, should I change old passwd for one defined in shadow? Or it's fine to... (20 Replies)
hi,
i'm using the folowing ssh command to list the newuser "crontab' from myuser
ssh -t myuser@host1 "sudo -u newuser crontab -l"
this is ok but it is asking me a password.
Mot de passe de myuser:
The problem is that i want to answer it automatically in a shell script with the... (22 Replies)
Hi Guys,
I am generating a csv file using a shell script in Unix. Please can you guys advise if I can also password protect the file.
Best Regards,
Shaz (5 Replies)
Hi,
I am trying to get the hash values of md5 of a string. I am on Redhat Linux. using the 25-27 field in the file I need to generate the md5 and append it at the end of the record as a new field.
I have tried the below code but its painfully slow. can you please suggest any alternatives or... (21 Replies)
Hello,
I have created a script to generate a random password on Linux/Solaris, but I simply cannot use it on my AIX VMs since Bash isn't installed on them.
I need a password that is randomly created with the following... (12 Replies)
Good afternoon all!! I am writing a shell script that will generate a random phrase to be used as a password.
this is the line I use to generate the password
echo `head -n 10 /dev/urandom | tr -cd "*+,-/:;<=>?_" | cut -c '1-'$3`
The third input in the command is the length of the password i... (6 Replies)
Hi Guys,
I have a backup program that creates incremental backups and generates a MD5 hash at the same time.
Each server backup has its own sub folder.
Each backup file has a corresponding .md5 file containing a hash and a file name like this.
3410efed13b087322de8036145230a55... (6 Replies)