srinskit / Crypt

A simple interface to common cryptography functions on top of ARM's mbedtls.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crypt

A simplified interface to common cryptography functions written on top of ARM's mbedtls.

The interface is not final and the library may not be safe. I do not claim to use the best practices and the current work is just the foundation. Someone inexperienced(like me) will see the need for such a project. Any help is welcome.

Don't roll your own crypto, bro.

Crypt does not implement cryptographic algorithms. It adds a layer of abstraction to well-established crypto libraries(only mbedtls as of now). Crypt exposes commonly used functionality in a not-so-cryptic way. Crypt also provides key management so you do not have to worry about losing them.

Crypt uses safe defaults under the hood and exposes minimum control to the developer. It's not for everyone. It is for projects where crypto is not core, but is still essential.

Aim

  • Promote best practices: Crypto libraries provide lots of options. Crypt limits these to few safe options.
  • Encourage devs: Crypt allows devs to build safe applications without much extra effort.
  • Ease switching between crypto libraries: Switch to a library you believe in without replacing all 192 occurances of openssl.

Install mbedtls

Install mbedtls (as shared libraries if applicable) as in it's README or as below

Using CMake

  1. Download source
  2. Make directory build inside the downloaded source
  3. Inside build run cmake -DUSE_SHARED_MBEDTLS_LIBRARY=On ..
  4. Inside build run make install or sudo make install

Install Crypt

Using CMake

  1. Install mbedtls
  2. Download source
  3. Make directory build inside the downloaded source
  4. Inside build run cmake ..
  5. Inside build run make install or sudo make install

About

A simple interface to common cryptography functions on top of ARM's mbedtls.

License:MIT License


Languages

Language:C++ 98.9%Language:CMake 1.1%