> For the complete documentation index, see [llms.txt](https://tule-developer.gitbook.io/noway/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tule-developer.gitbook.io/noway/_docs/cryptography.md).

# Cryptography

## Issue

After searching and discussing to find solution for the issue <https://tule-developer.gitbook.io/noway/_docs/store-apis-key-in-frontend-sdk-issues>\
We decided using Secret Key Cyptography. The key will be stored in the customer backend

## Ref

I found a an good overview of Cryptography here <https://www.garykessler.net/library/crypto.html><br>

## Brief of cryptography types

There are 3 types

* *Secret Key Cryptography (SKC): Uses a single key for both encryption and decryption; also called symmetric encryption. Primarily used for privacy and confidentiality.*

  -> Using this method for server-server communication, the key will be store in the server, so it will be protected

* *Public Key Cryptography (PKC): Uses one key for encryption and another for decryption; also called asymmetric encryption. Primarily used for authentication, non-repudiation, and key exchange.*

  -> Using for exchange info between 1 - n communication, for example: chat, establishing secure communications over the Internet ssl,..

* *Hash Functions: Uses a mathematical transformation to irreversibly "encrypt" information, providing a digital fingerprint. Primarily used for message integrity.*

  -> Using for checking data integrity, for excample: check sum for data request

## <br>
