02-09-2009
UNIX passwords contain a "
salt" in order to create (a bit of) randomness and make them less guessable. To generate a password you usually call the crypt(3) routine with an empty salt. To check a password, you pass the hashed password as the salt to crypt(3), which extracts the salt originally used and uses this to create the other hashed password. If both hashes match, you've got the correct password.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I am getting two input from User for Date from the command prompt when
my script is executed .
The date format i am taking is : DD-MM-YYYY
so is there any method in Unix to validate the two input date.
There might be many cases for these two date to be invalid.... (1 Reply)
Discussion started by: rawatds
1 Replies
2. Shell Programming and Scripting
Im currently working on a Script using PICO editor, the scripts purpose is :
When you typed a certain "word" and press enter, All directories, Script, and any other files that contain that "word" will be displayed.. for example i typed "DOG".. all executable script, Directories, and any other... (3 Replies)
Discussion started by: jenimesh19
3 Replies
3. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Im currently doing a search command.. for example , when i typed a certain word , lets say "DOG".. all... (7 Replies)
Discussion started by: jenimesh19
7 Replies
4. Shell Programming and Scripting
Hello All,
Here I am trying to find all the directories whose name starts with EFS or HOTFIX like in below example and below is my code but I don’t know why this is not working correctly.
drwxr-xr-x 3 qabuild denccefs 4096 Sep 23 21:36 EFS110929A_SOURCE/
-rwxrwxr-x 1 qabuild... (2 Replies)
Discussion started by: anuragpgtgerman
2 Replies
5. AIX
hi guys need some help. when ever i'm login ssh to aix server session always closed.
when trying t0 type wrong password the session still continues, but we tried the correct password it automatically ends.
what could be the problem to this
please see .profile details
... (6 Replies)
Discussion started by: bocha
6 Replies
6. Shell Programming and Scripting
Hi Folks,
I have few mailids in a text file and need to check whether the mailid is in correct format or not.
If just to check whether the string is a mailid or not there is a perl module Email::Valid to do the business or we can implement our own logic.
But the mail_ids I am having is... (4 Replies)
Discussion started by: giridhar276
4 Replies
7. Shell Programming and Scripting
Hi! how do i know if the input is the same as the required date format? the date should be dd/mm/YYYY ex. 2/3/2012 or 15/11/2012
all the following conditions must return an error:
*input of string
*day is > 31 or < 1
*month is > 12 or < 1
*year is < 2013
suppose the date format is stored... (1 Reply)
Discussion started by: angilulu
1 Replies
8. Shell Programming and Scripting
Hi Experts,
path=/db/files/
format=$1
User can enter any file format.compare the user file format with actual file format existed in the directory /db/files. User enter all characters as "A" apart from date format.
example1: user will be entering the file format AAA_AA_YYYYMMDD.AAA
Actual... (6 Replies)
Discussion started by: nalu
6 Replies
9. OS X (Apple)
Hi,
I hope this is the correct section in the forum to post as I'm trying to SSH from my MacBook.
I was looking to see whether ssh on my jailbroken iPhone 6s (10.3.1) still works fine and was following this old reddit guide. I installed OpenSSH&OpenSSL from Cydia and changed the password using... (7 Replies)
Discussion started by: hss1
7 Replies
10. Forum Support Area for Unregistered Users & Account Problems
I cannot login. Already activated my account and entered the correct password but cannot get in.
Then I clicked forget password to set a new one. Upon setting a new one and tried to login, still failed until I repeatedly press the login button which triggered the 15 minutes login barrier. Have... (1 Reply)
Discussion started by: Unregistered
1 Replies
LEARN ABOUT DEBIAN
ns_crypt
ns_crypt(3aolserver) AOLserver Built-In Commands ns_crypt(3aolserver)
__________________________________________________________________________________________________________________________________________________
NAME
ns_crypt - commands
SYNOPSIS
ns_crypt key salt
_________________________________________________________________
DESCRIPTION
ns_crypt encrypted the key, also known as the password, using the salt and returns the result. It uses the same algorithm as the unix
crypt command.
The result from ns_crypt is a 13-character string. The first two characters correspond to the salt, and the remaining eleven characters
correspond to the password encrypted with the specified salt.
The password is a string (typically that of a password to be used for nscp and/or nsperm authentication).
salt should be two characters, typically from the set [a-zA-Z0-9./]. If the empty string is specified as the salt then ns_crypt returns
the empty string. If a string longer than two characters is specified for the salt it is truncated to two characters. If a one character
salt is provided the output will appear to have a two-character salt (the single character repeated), however, the encrypted value does not
correspond to the same password being encrypted with the equivalent two character salt. (As a result sticking with a two character salt is
highly recommended.)
Input to ns_crypt is case-sensitive.
EXAMPLES
nscp> ns_crypt aolserver ns
ns0WvClsyIL4A
nscp> ns_crypt aolserver NS
NSDQ1dPM.409Q
nscp> ns_crypt aolserver tcl
tcAbgtlzbEhVc
nscp> ns_crypt aolserver tc
tcAbgtlzbEhVc
nscp> ns_crypt aolserver ..
..7TNvXHLxJ9Y
nscp> ns_crypt aolserver .
..fwmBaZuzrRs
SEE ALSO
nsd(1), info(n), nscp, nsperm, crypt(3)
KEYWORDS
AOLserver 4.0 ns_crypt(3aolserver)