Skip to content

armr-dev/cypher-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cypher-api

image image

cypher-api is an API that cypher/decipher messages using one of five block cypher algorithms. It's used mainly as part of the Cypher project, that is composed by cypher-api and cypher-front. You can check out cypher-front here.

⚠️ This should not be used in production because the key for the algorithms are hardcoded in the application, for now.

This api is hosted using Heroku and you can check it out here.

This project was done as part of a course in university.

Usage

There are 2 main endpoints in the API: /cypher and /decipher.

To cypher and decipher messages, all you have to do is make a POST request to the api with a body in the following format:

  {
    text: string,
    algorithm: "aes" | "des" | "3des" | "blowfish" | "idea"
  }

The API will then respond with a JSON in the following format:

  {
    data: {
      text: string
    }
  }

where text is the cyphered/deciphered string.

ToDo

  • Add key param for algorithms;

About

A REST API written in Go for cyphering/deciphering texts using AES, DES, 3DES, Blowfish and IDEA.

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages