Skip to content

Microservice of symmetric encryption(Blowfish) on golang.

License

Notifications You must be signed in to change notification settings

enternal-hoge/encrypt

Repository files navigation

Microservice of symmetric encryption(Blowfish) on golang.

At first you should generate encryption key (if you don't have it)

pwgen 24 1

This microservice supports Content-Type :

  • application/json
  • application/octet-stream (msgpack)

API

Encrypt your plaintext by key

Request:

  • key:(string) # Encryption key (string with 24 length)
  • text:(string) # Text to encode
{"key": "phahf7woh8auvooJiebeong2", "text": "I want to encode this text"}

200:

{
    "result": "000000000000000020cad804dd2b6c272498052709fd58f669a670ddd0901acbe726224ccb2ed9d8"
}

Decryption your ciphertext by key

Request:

  • key:(string) # Encryption key (string with 24 length)
  • text:(string) # Text to decode
{"key": "phahf7woh8auvooJiebeong2", "text": "000000000000000020cad804dd2b6c272498052709fd58f669a670ddd0901acbe726224ccb2ed9d8"}

200:

{
    "result": "I want to encode this text"
}

Multi Encryption of your plaintexts by key

Request:

  • key:(string) # Encryption key (string with 24 length)
  • texts:[]string # Texts to encode
{"key": "phahf7woh8auvooJiebeong2", "texts": ["text 1", "text 2", "text 3"]}

200:

{
    "result": [
        "0000000000000000badb5ed98e106434",
        "00000000000000004b475e7f3ca46ec5",
        "00000000000000006bb2993acc134f0f"
    ]
}

liveness Probe

readiness Probe

About

Microservice of symmetric encryption(Blowfish) on golang.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published