Tux

...making Linux just a little more fun!

problem in using crypt.perl.txt

[nilesh.04 at lnmiit.ac.in]


Tue, 5 Jun 2007 03:00:26 +0530 (IST)

hello sir,

my password is 100bits long so i put that in a text file now i have to encrypt n decrypt by data with in file.

pls reply me as soon as possible ,hoping positive responds from your side


Top    Back


Kapil Hari Paranjape [kapil at imsc.res.in]


Tue, 5 Jun 2007 06:56:59 +0530

Hello,

On Tue, 05 Jun 2007, [email protected] wrote:

>         my password is 100bits long so i put that in a text file now i
> have to encrypt n decrypt by data with in file.

This question does not seem to be meaningful.

	1. A text file with 100 bits stored in what way?
	2. What do you mean by encrypt/decrypt "by data with in file".
Perhaps what you mean is that:
	a. You stored your password in a file.
	b. You have data which you want to encrypt and decrypt using the file.
This is a standard operation, but how you do it depends on the encryption/decryption operation that you use.

Regards,

Kapil. --


Top    Back


nilesh wadhwani [nilesh.wadhwani at gmail.com]


Tue, 5 Jun 2007 13:32:19 +0530

Hello Sir, i have password in file .ok there is an encryption/ decryption method given by Mr.Ben Okopnik by a Perl script .which i m sending you with this mail and method also

how it work . i have my passwd in file what command i use or what method i use to run it properly reply as soon as possible hoping positive responds from you.


Top    Back


Ben Okopnik [ben at linuxgazette.net]


Tue, 5 Jun 2007 10:00:18 -0400

On Tue, Jun 05, 2007 at 01:32:19PM +0530, nilesh wadhwani wrote:

>    Hello Sir,
>            i have password in file .ok
>         there is an encryption/ decryption method given by Mr.Ben Okopnik
>         by a Perl script .which i m sending you with this mail and method
>    also   
>         how it work .
>                      i have my passwd in file what command i use or what
>    method i use to run it properly    
>           reply as soon as possible hoping positive responds from you.

Nilesh, if I understand what you're asking, then the solution is simple - although it doesn't have much to do with Perl.

crypt "`cat password_file`" input_file
This will decrypt 'input_file' by using the contents of 'password_file' as the password.

-- 
* Ben Okopnik * Editor-in-Chief, Linux Gazette * http://LinuxGazette.NET *

Top    Back


nilesh wadhwani [nilesh.wadhwani at gmail.com]


Tue, 5 Jun 2007 20:44:38 +0200

thank you sir,for your reply


Top    Back