findix / lua-openssl-crypto

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lua-openssl-crypto

this is a c library with lua binding which can encrypt bytes just like openssl app.

there is only one interface.

int encrypt_bytes(char *passphrase, char *plaintext, char **p, size_t *size)

the result is same as echo -n "127.0.0.1:62863" | openssl enc -e -aes-256-cbc -a -salt -k "[Passphrase]"

This library is using on client of Frontd

openssl.c is basicly a modified version of openssl

About

License:Apache License 2.0


Languages

Language:C 94.8%Language:Makefile 5.2%