Hi,
On AIX,
We have several moveplan.xml files in different folders.
I run:
And it returns
Is there any option to have complete path where the files are situated?
Thanks.
Hi,
I need to find out a particular pattern from a directory, for example say X.
The X directory contains 10 c files, and it has subdirectory called Y, and Y has 20 c files within it.
Now I have to find out the pattern only from parent directory X not from sub directory Y.
I have... (4 Replies)
I have some patterns that I need to match with the content of several files and I'm having trouble to do it
Here is what I tried already :
ksh won't even execute this
#!/bin/ksh
path="/export/home/ipomwbas"
pattern=$path"/flags"
find . -name "*.properties" |\
while read file; do
... (7 Replies)
Hey, I have a question about using grep and find together to locate all C programs in a directory containing certain words and open the vi editor with each file. I'm not sure how to do this in one command (as in one line). I know find has a "-exec" option that can call vi, but how do you combine... (1 Reply)
HI
what is the difference between find and grep
if I want to find all the files from different directories which contain "ORA" error, and the line number in each file which has ORA error
should I use pipeline ?
thanks
James (3 Replies)
Hey,
I have a Find command like:
find $searchDir -type f
and this returns a list of files under the directory, which is all good, but, I want to filter that search for files that contain the string "people"
I tried something like:
find $searchDir -type f -exec grep "people" '{}'... (2 Replies)
:wall:Hello, Im having trouble using the find and grep combined into one command. I have the following:
find filname* -mmin -60 grep "ERROR" filename
I want to find the "ERROR" text in any file created in the last hour in the current directory. I dont know how to end the command. If I leave... (3 Replies)
I have a file called 'test.txt' that contains alphanumeric charecters.
The file contains the word 'SBE' followed by other alphabets many times. For example, the file will contain: SBE334GH and also will have SBE77Y8I.
When i do grep 'SBE*' test.txt - it outputs the entire file.
Can you... (5 Replies)
Hi all ,
I'm new to unix
I have a checked project , there exists a file called xxx.config .
now my task is to find all the files in the checked out project which references to this xxx.config file.
how do i use grep or find command . (2 Replies)
How can I recursively find all files in a directory and print out the file and first line number of any text blocks that match the below cases?
This would seem to involve find, xargs, *grep, regex, etc.
In summary, I want to find so-called empty "try-catch blocks" that do not contain code... (0 Replies)
Is it possible with find and Grep to search files under a directory and display only files that have multiple occurrence of a string (In AIX)? Anybody has an example code? If not what are the other options?
Thanks in advance. (7 Replies)
Discussion started by: J_ang
7 Replies
LEARN ABOUT DEBIAN
authen::passphrase::crypt16
Authen::Passphrase::Crypt16(3pm) User Contributed Perl Documentation Authen::Passphrase::Crypt16(3pm)NAME
Authen::Passphrase::Crypt16 - passphrases using Ultrix crypt16 algorithm
SYNOPSIS
use Authen::Passphrase::Crypt16;
$ppr = Authen::Passphrase::Crypt16->new(
salt_base64 => "qi",
hash_base64 => "8H8R7OM4xMUNMPuRAZxlY.");
$ppr = Authen::Passphrase::Crypt16->new(
salt_random => 12,
passphrase => "passphrase");
$salt = $ppr->salt;
$salt_base64 = $ppr->salt_base64_2;
$hash = $ppr->hash;
$hash_base64 = $ppr->hash_base64;
$ppr0 = $ppr->first_half;
$ppr1 = $ppr->second_half;
if($ppr->match($passphrase)) { ...
DESCRIPTION
An object of this class encapsulates a passphrase hashed using the "crypt16" hash function found in Ultrix and Tru64. Do not confuse this
with the "bigcrypt" found on HP-UX, Digital Unix, and OSF/1 (for which see Authen::Passphrase::BigCrypt). This is a subclass of
Authen::Passphrase, and this document assumes that the reader is familiar with the documentation for that class.
This is a derivation of the original DES-based crypt function found on all Unices (see Authen::Passphrase::DESCrypt). The first eight
bytes of the passphrase are used as a DES key to encrypt the all-bits-zero block through 20 rounds of (12-bit) salted DES. (The standard
crypt function does this, but with 25 encryption rounds instead of 20.) Then the next eight bytes, or the null string if the passphrase is
eight bytes or shorter, are used as a DES key to encrypt the all-bits-zero block through 5 rounds of salted DES with the same salt. The
two eight-byte ciphertexts are concatenated to form the sixteen-byte hash.
A password hash of this scheme is conventionally represented in ASCII as a 24-character string using a base 64 encoding. The first two
characters give the salt, the next eleven give the hash of the first half, and the last eleven give the hash of the second half. A hash
thus encoded is used as a crypt string, on those systems where the crypt16 algorithm is part of crypt(), but the syntax clashes with that
of bigcrypt. This module does not treat it as a crypt string syntax.
Because the two halves of the passphrase are hashed separately, it is possible to manipulate (e.g., crack) a half hash in isolation. See
Authen::Passphrase::DESCrypt for handling of a single half.
Warning: This is a fatally flawed design, often providing less security than the plain DES scheme alone. Do not use seriously.
CONSTRUCTOR
Authen::Passphrase::Crypt16->new(ATTR => VALUE, ...)
Generates a new passphrase recogniser object using the crypt16 hash algorithm. The following attributes may be given:
salt
The salt, as an integer in the range [0, 4096).
salt_base64
The salt, as a string of two base 64 digits.
salt_random
Causes salt to be generated randomly. The value given for this attribute must be 12, indicating generation of 12 bits of salt.
The source of randomness may be controlled by the facility described in Data::Entropy.
hash
The hash, as a string of 16 bytes.
hash_base64
The hash, as a string of 22 base 64 digits.
passphrase
A passphrase that will be accepted.
The salt must be given, and either the hash or the passphrase.
METHODS
$ppr->salt
Returns the salt, as a Perl integer.
$ppr->salt_base64_2
Returns the salt, as a string of two base 64 digits.
$ppr->hash
Returns the hash value, as a string of 16 bytes.
$ppr->hash_base64
Returns the hash value, as a string of 22 base 64 digits. This is the concatenation of the base 64 encodings of the two hashes, rather
than a base64 encoding of the combined hash.
$ppr->first_half
Returns the hash of the first half of the passphrase, as an Authen::Passphrase::DESCrypt passphrase recogniser.
$ppr->second_half
Returns the hash of the second half of the passphrase, as an Authen::Passphrase::DESCrypt passphrase recogniser.
$ppr->match(PASSPHRASE)
This method is part of the standard Authen::Passphrase interface.
SEE ALSO
Authen::Passphrase, Authen::Passphrase::DESCrypt
AUTHOR
Andrew Main (Zefram) <zefram@fysh.org>
COPYRIGHT
Copyright (C) 2006, 2007, 2009, 2010, 2012 Andrew Main (Zefram) <zefram@fysh.org>
LICENSE
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-02-07 Authen::Passphrase::Crypt16(3pm)