Sponsored Content
Top Forums Programming Compression algorithm( usage of Hash tables) Post 302190998 by jim mcnamara on Thursday 1st of May 2008 07:13:47 AM
Old 05-01-2008
A very good site for hash tables:
Eternally Confuzzled - Hash Table Tutorial
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Returning Hash Tables in Perl

Hi: Does anybody know how to return hash tables created in a function? I have something like so: %a_hash_table = build_a_hash_table(); sub build_a_hash_table { my(%hash_table); #some code to build hash table: "%hash_table" for e.g return %hash_table; } ----> This... (1 Reply)
Discussion started by: mirzabhai
1 Replies

2. UNIX for Dummies Questions & Answers

Passing Hash Tables to Subroutines

Hi: How do I pass a hash table down to a subroutine along with some other variables? For example, I have say a subroutine play_with_hash: sub play_with_hash { my( $var1, $var2, %my_hash ) = @_; #do stuff with %my_hash ........... } Then I want to call the subroutine... (1 Reply)
Discussion started by: mirzabhai
1 Replies

3. Programming

hash tables, pthread_key_create

I want to store a bunch of pthread_t types in a hash table, but since pthread_t is not an integer value, I cannot hash it. I was hoping to store a unique nonzero as key 0 for each thread with thread-specific data ala pthread_key_create/pthread_setspecific, but but as it turns out only the first... (2 Replies)
Discussion started by: Corona688
2 Replies

4. Shell Programming and Scripting

Converting tables of row data into columns of tables

I am trying to transpose tables listed in the format into format. Any help would be greatly appreciated. Input: test_data_1 1 2 90% 4 3 91% 5 4 90% 6 5 90% 9 6 90% test_data_2 3 5 92% 5 4 92% 7 3 93% 9 2 92% 1 1 92% ... Output:... (7 Replies)
Discussion started by: justthisguy
7 Replies

5. Shell Programming and Scripting

Print Entire hash list (hash of hashes)

I have a script with dynamic hash of hashes , and I want to print the entire hash (with all other hashes). Itried to do it recursively by checking if the current key is a hash and if yes call the current function again with refference to the sub hash. Most of the printing seems to be OK but in... (1 Reply)
Discussion started by: Alalush
1 Replies

6. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies

7. Programming

Hash tables concepts

How hash tables are used to quickly locate a data record? (4 Replies)
Discussion started by: rupeshkp728
4 Replies

8. UNIX for Dummies Questions & Answers

Hash Tables of Buffers

Hello, I want to know how hash tables for buffers were implemented in Unix and now, in linux how they are implemented ? I am aware of what hashing is..also quite familiar with Unix/Linux. Special case is how device numbers comes into picture..I am curious ! If possible consider some... (0 Replies)
Discussion started by: istevan
0 Replies

9. Shell Programming and Scripting

Compare values of hashes of hash for n number of hash in perl without sorting.

Hi, I have an hashes of hash, where hash is dynamic, it can be n number of hash. i need to compare data_count values of all . my %result ( $abc => { 'data_count' => '10', 'ID' => 'ABC122', } $def => { 'data_count' => '20', 'ID' => 'defASe', ... (1 Reply)
Discussion started by: asak
1 Replies

10. Shell Programming and Scripting

Dynamically parse BibTeX and create hash of hash

Hello gurus, Iam trying to parse following BibTex file (bibliography.bib): @book{Lee2000a, abstract = {Abstract goes here}, author = {Lee, Wenke and Stolfo, Salvatore J}, title = {{Data mining approaches for intrusion detection}}, year = {2000} } @article{Forrest1996, abstract =... (0 Replies)
Discussion started by: wakatana
0 Replies
Authen::Passphrase::NTHash(3pm) 			User Contributed Perl Documentation			   Authen::Passphrase::NTHash(3pm)

NAME
Authen::Passphrase::NTHash - passphrases using the NT-Hash algorithm SYNOPSIS
use Authen::Passphrase::NTHash; $ppr = Authen::Passphrase::NTHash->new( hash_hex => "7f8fe03093cc84b267b109625f6bbf4b"); $ppr = Authen::Passphrase::NTHash->new( passphrase => "passphrase"); $ppr = Authen::Passphrase::NTHash->from_crypt( '$3$$7f8fe03093cc84b267b109625f6bbf4b'); $ppr = Authen::Passphrase::NTHash->from_rfc2307( '{MSNT}7f8fe03093cc84b267b109625f6bbf4b'); $hash = $ppr->hash; $hash_hex = $ppr->hash_hex; if($ppr->match($passphrase)) { ... $passwd = $ppr->as_crypt; $userPassword = $ppr->as_rfc2307; DESCRIPTION
An object of this class encapsulates a passphrase hashed using the NT-Hash function. This is a subclass of Authen::Passphrase, and this document assumes that the reader is familiar with the documentation for that class. The NT-Hash scheme is based on the MD4 digest algorithm. Up to 128 characters of passphrase (characters beyond the 128th are ignored) are represented in Unicode, and hashed using MD4. No salt is used. Warning: MD4 is a weak hash algorithm by current standards, and the lack of salt is a design flaw in this scheme. Use this for compatibility only, not by choice. CONSTRUCTORS
Authen::Passphrase::NTHash->new(ATTR => VALUE, ...) Generates a new passphrase recogniser object using the NT-Hash algorithm. The following attributes may be given: hash The hash, as a string of 16 bytes. hash_hex The hash, as a string of 32 hexadecimal digits. passphrase A passphrase that will be accepted. Either the hash or the passphrase must be given. Authen::Passphrase::NTHash->from_crypt(PASSWD) Generates a new NT-Hash passphrase recogniser object from a crypt string. Two forms are accepted. In the first form, the he crypt string must consist of "$3$$" (note the extra "$") followed by the hash in lowercase hexadecimal. In the second form, the he crypt string must consist of "$NT$" followed by the hash in lowercase hexadecimal. Authen::Passphrase::NTHash->from_rfc2307(USERPASSWORD) Generates a new NT-Hash passphrase recogniser object from an RFC 2307 string. Two forms are accepted. In the first form, the string must consist of "{MSNT}" followed by the hash in hexadecimal; case is ignored. In the second form, the string must consist of "{CRYPT}" (case insensitive) followed by an acceptable crypt string. METHODS
$ppr->hash Returns the hash value, as a string of 16 bytes. $ppr->hash_hex Returns the hash value, as a string of 32 hexadecimal digits. $ppr->match(PASSPHRASE) $ppr->as_crypt $ppr->as_rfc2307 These methods are part of the standard Authen::Passphrase interface. SEE ALSO
Authen::Passphrase, Digest::MD4 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::NTHash(3pm)
All times are GMT -4. The time now is 03:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy