Skip to content

number571/c-crypto-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CCryptoLIB

From ancient to modern Cryptography.

Example:

#include <stdio.h>

#include "crypto/append/macro/consts.h"
#include "crypto/trithemius.h"

char func_key(const char x) {
	return x * 2 + 1;
}

int main(void) {
	char message[100] = "HELLO, WORLD";

	set_alpha_trithemius("ABCDEFGHIJKLMNOPQRSTUVWXYZ, ");

	trithemius(message, ENCRYPT_MODE, func_key, message);
	printf("%s\n", message);

	trithemius(message, DECRYPT_MODE, func_key, message);
	printf("%s\n", message);

	return 0;
}

Compile and Run:

$ gcc main.c crypto/cipher/trithemius.c -o main
$ ./main

IHQSXJMJDIE,
HELLO, WORLD

About

Cryptographic library for programming language C.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published