The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
need encrypt form syamkp Shell Programming and Scripting 0 03-08-2008 04:51 AM
encrypt my sctipt readycpbala Shell Programming and Scripting 4 01-24-2008 05:08 PM
encrypt file murad.jaber SUN Solaris 1 01-08-2008 08:29 AM
Decrypt Des file - then encrypt frustrated1 SUN Solaris 0 09-07-2006 06:38 PM
Tr utility to Encrypt frankthetank115 Shell Programming and Scripting 1 11-15-2005 04:29 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-16-2005
giggi giggi is offline
Registered User
  
 

Join Date: Mar 2005
Posts: 1
Help with encrypt function

Hi there,

I need to include a simple encryption function in a C program and I came across this function

void encrypt(char block[64], int edflag)

whic is defined in #include des_crypt.h. According the man "the block argument to encrypt() is a character array of length 64 containing only the characters with numerical value 0 and 1". Any example of how to call this funtion properly?

In case I need to encrypt a string how do I create the blocks to be used by encrypt?



Thanks,
Giggi
  #2 (permalink)  
Old 03-16-2005
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,790
Consider using something other than DES, this has an example:

http://man.linuxquestions.org/index....ction=0&type=2
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:39 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0