crypt() i encrypt() lub inne

0

Jakie musze miec bilioteczki by te 2 dranstwa zadzialaly?
zalaczam unistd.h i nic... (CygWin)

a moze macie jakies fukncje gotowe biblioteczki?
najbardziej zalezy mi na 2-way kodowanie ale tez moze byc 1-way
(tez sobie poradze)

Moze byc linux lub jakies standardowe crossplatformowe (bo jak linux to cygwinem skompiluje)

0

NAME
crypt - password and data encryption

SYNOPSIS
#define _XOPEN_SOURCE
#include <unistd.h>

   char *crypt(const char *key, const char *salt);

NAME
encrypt, setkey, encrypt_r, setkey_r - encrypt 64-bit messages

SYNOPSIS
#define _XOPEN_SOURCE
#include <unistd.h>

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

   #define _XOPEN_SOURCE
   #include <stdlib.h>

   void setkey(const char *key);

   #define _GNU_SOURCE
   #include <crypt.h>

   void setkey_r (const char *key, struct crypt_data *data);
   void encrypt_r (char *block, int edflag, struct crypt_data *data);

   Each of these requires linking with -lcrypt.

1 użytkowników online, w tym zalogowanych: 0, gości: 1