vishal-kumar-paswan / Caesar-Cypher-Backend

Home Page:https://caesar-cypher-backend.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Caesar Cypher Backend

Caesar cipher is a simple method of encoding messages. Caesar ciphers use a substitution method where letters in the alphabet are shifted by some fixed number of spaces to yield an encoding alphabet. A Caesar cipher with a shift of 1 would encode an A as a B, an M as an N, and a Z as an A, and so on.

Source : brilliant.org

API Referenece

For Encryption

Send a POST request at the following URL : https://caesar-cypher-backend.vercel.app/encrypt-text/

Required parameters

text: String

key: Integer

Request Body

{
    "text": "Abc123",
    "key": "1"
}

Response Body

{
    "encrypted-text": "Bcd234"
}

For Decryption

Send a POST request at the following URL : https://caesar-cypher-backend.vercel.app/decrypt-text/

Required parameters

text: String

key: Integer

Request Body

{
    "text": "Bcd234",
    "key": "1"
}

Response Body

{
    "decrypted-text": "Abc123"
}

About

https://caesar-cypher-backend.vercel.app


Languages

Language:JavaScript 100.0%