Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

crypt(1) [mojave man page]

crypt(n)																  crypt(n)

__________________________________________________________________________________________________________________________________________________

NAME
crypt - Password hashing based on "crypt" SYNOPSIS
package require Tcl ?8.2? package require Trf ?2.1.4? crypt password salt _________________________________________________________________ DESCRIPTION
The command crypt is an interface to the crypt(3) function for the encryption of passwords. An alternative command for the same, but based on md5 is md5crypt. crypt password salt Encrypts the password using the specified salt and returns the generated hash value as the result of the command. SEE ALSO
md5crypt, trf-intro KEYWORDS
authentication, crypt, hash, hashing, mac, md5, message digest, password COPYRIGHT
Copyright (c) 1996-2003, Andreas Kupries <andreas_kupries@users.sourceforge.net> Trf transformer commands 2.1.4 crypt(n)

Check Out this Related Man Page

crypt(3C)																 crypt(3C)

NAME
crypt - generate hashing encryption SYNOPSIS
Obsolescent Interfaces DESCRIPTION
crypt(): is the password encryption function. It is based on a one way hashing encryption algorithm with variations intended (among other things) to frustrate use of hardware implementations of a key search. key is a user's typed password. salt is a two-character string chosen from the set this string is used to perturb the hashing algorithm in one of 4096 different ways, after which the password is used as the key to encrypt repeatedly a constant string. The returned value points to the encrypted password. The first two characters are the salt itself. Obsolescent Interfaces generate hashing encryption. WARNINGS
The return value for points to data whose content is overwritten by each call. and are obsolescent interfaces supported only for compatibility with existing DCE applications. New multithreaded applications should use SEE ALSO
crypt(1), login(1), passwd(1), getpass(3C), passwd(4), thread_safety(5). STANDARDS CONFORMANCE
crypt(3C)
Man Page

15 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

GPG Encription problem

Dear Friends, I have been using symmetric gpg encryption. I encrypt a file as follows gpg --symmetric <file name> then It asks to enter password two times Now the problme is, I have some 700 odd files to be encrypted by using symmetric gpg encription Can u plz tell me how to do that by... (14 Replies)
Discussion started by: anushree.a
14 Replies

2. Shell Programming and Scripting

Encryption of card number

i have a file with a : separated sections ABC::2110.49:2110.49:31034050545::+DEF:FPT:2:N::::1:42.99:0.00:2008-07-11:CN:4658582030164342::1:N:afram:N:AI:00220600:S3FA' XYZ:31034050694:3:::TFY:1:TL1::D:N:42.99:P:9:S:1:18.21:Y:0.00' JKI:::OC::D:N:2.00::::2::Y::::::2008-07-11' here... (12 Replies)
Discussion started by: mad_man12
12 Replies

3. UNIX for Advanced & Expert Users

compile a c program in a encrypted way

Hi Guys, I wonder I had have a look to the cc compile options but I could be missing one but basically I'm compliling a c program where I will storing a command to connect to a database and also userid and password. The issue is that after the module is generated using a command like strings I... (14 Replies)
Discussion started by: arizah
14 Replies

4. Shell Programming and Scripting

Encrypted script not working

I've encrypted a script in rot-13. When executed, I want the script to decrypt into a temporary file then run itself, and when it's exited then delete the temporary file. so at the moment I have this: #!/bin/sh FIFO=/tmp/__scriptname_$(date +%F)_$$ rm $FIFO >/dev/null 2>/dev/null mkfifo... (12 Replies)
Discussion started by: Trichopterus
12 Replies

5. Programming

Write own decryption application

Hi , I need some help as I dont know where to start. I need to create a unix decryption application. The information I have been given is this so far: the specification of the encryption process is: NET 2 Cryptography classes. RijndaelManaged encryption algorithm ... (13 Replies)
Discussion started by: caciing_help
13 Replies

6. Programming

Linking in OpenSSL libcrypto Statically

I have a C++ program which includes lots of libraries, including openssl libcrypto. In fact, the g++ switches are: -lxml2 -lcrypto -lcurl etc. The problem is that when I try to run it on a different flavor of Linux, it complains that it cannot load libcrypto.so.8. I did some research and... (20 Replies)
Discussion started by: BrandonShw
20 Replies

7. Programming

Simple encryption in python

Hi, i have the below script: ###############################SimpleEncryption################################ #Simple encryption implemented in python #Author:pandeeswaran ############################################################################### def Encrypt(input): res='' ... (13 Replies)
Discussion started by: pandeesh
13 Replies

8. Shell Programming and Scripting

Deleting files and directory's older than 3 months

I have a qnap TS259 that is running ubuntu. Have successfully setup back scripts that are initiated by cron. I would like to create a couple scrypts that would operate on the recycle bins for both drives. Just want to be able to run the script manually that would walk through both directories... (13 Replies)
Discussion started by: mackconsult
13 Replies

9. UNIX for Advanced & Expert Users

How to decrypt a file in UNIX?

I have a file which contains encrypted data. Can anyone tell me how to decrypt the file? (14 Replies)
Discussion started by: saga20
14 Replies

10. UNIX for Dummies Questions & Answers

How to Unmask/Decrypt an XML file?

Hello All, Below is the content of the XML datafile when i do vi the XML file not sure why the content is showing like this, it could be because the data inside the file is masked or something? is there a way i can decrypt or unmask the data in a human readable format? . When i use my Informatica... (20 Replies)
Discussion started by: Ariean
20 Replies

11. UNIX for Dummies Questions & Answers

Need someone to decrypt an encoded text

Hello everybody, i have a big issue, i have to decode a big text in base64 a lot of times but there are 2 problems: i am a noob with unix system and shell, and i have problems with openssl and i can't decode anything. can anyone decode for me that base64? need a powerful computer, i can give some... (16 Replies)
Discussion started by: supermarco2020
16 Replies

12. Shell Programming and Scripting

Best Approach To Encrypt The Passwords

Hello All, I am using the red hat Linux OS and bash shell scripting. Below is my requirement. I need to store encrypted the passwords of database accounts, ftp acccounts into a file1. Encrypt that file1 or make it secure with password to open & read it. Later in shell scripts I need to... (12 Replies)
Discussion started by: Ariean
12 Replies

13. AIX

Decrypt ssha1 password

hi to all, i have an AIX6.1 machine and i want to decrypt an ssha1 password written on /etc/security/passwd. the reason that i want to do that is because i have some complains about a few users that cannot login and receive the message for invalid login. i suspect that they are entering wrong... (15 Replies)
Discussion started by: omonoiatis9
15 Replies

14. Shell Programming and Scripting

Issues Masking(Encrypting) a string

Hi, echo "mypassword" | crypt "tom" But this is giving me some unreadable strange looking characters / symbols never seen before which I cant even copy and save in a file. SunOS mymac 5.10 Generic_150400-26 sun4v sparc sun4v Can you help me with encrypting the password "mypassword" in... (15 Replies)
Discussion started by: mohtashims
15 Replies

15. Shell Programming and Scripting

How to store the passwords securely and use in scripts?

I want to store the passwords in a global file, so that all the users will not use them to login but a process should use it. One way is to keep the passwords in a .ini file and execute the file in the start of the script and use that variable. But with this, one can echo the variable in the... (15 Replies)
Discussion started by: karumudi7
15 Replies