#include <stdlib.h>
#include <openssl/evp.h>
#include <string.h>
#include <unistd.h>
#include <iostream>
#include <fstream>
using namespace std;
int main(void) {
unsigned char ot[1024]; // open text
unsigned char st[1024]; // sifrovany text
unsigned char key[EVP_MAX_KEY_LENGTH] = "Muj klic ...
Nalezeny 2 výsledky hledání
Přejít na rozšířené vyhledávání
- pát 27. bře 2015 17:27:00
- Fórum: 4. semestr
- Téma: [BEZ] cvičení 3
- Odpovědi: 2
- Zobrazení: 8182
- pát 13. bře 2015 14:12:40
- Fórum: 4. semestr
- Téma: [BEZ] cviceni 2
- Odpovědi: 4
- Zobrazení: 12766
Re: cviceni 2
tady mate vyreseny 2 ulohy :)
#include <stdio.h>
#include <string.h>
#include <openssl/evp.h>
#define MAX_SIZE 128
#define MSG_LENGTH 32
char * rand_string(char * res, size_t size)
{
const char charset[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
res[size - 1] = '\0';
if ...
#include <stdio.h>
#include <string.h>
#include <openssl/evp.h>
#define MAX_SIZE 128
#define MSG_LENGTH 32
char * rand_string(char * res, size_t size)
{
const char charset[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
res[size - 1] = '\0';
if ...