Skip to content

Werid behavior of API #6

@Ziqi-Yang

Description

@Ziqi-Yang
  1. cannot create a new paste using the same initVector
    If you run the command below, you will encounter an error like {"message":"Internal Error"}. But if you change the initVector variable, a new paste can be created without problems.
curl -H "Content-Type: application/json" -X POST -d '{"content": "Ciallo~(∠・ω< )⌒★", "config": {"language": "plaintext", "encrypted": true, "expiresAfter": 3600, "burnAfterRead": false}, "passwordProtected": false, "initVector": "27DIWK00yDiGx003"}' https://bin.sohamsen.me/api/paste
  1. meaning of encrypted and passwordProtected
    It seems like on the API side, encrypted and passwordProtected have no effect on enhancing data security, cause it always return full information of a paste.
curl "https://bin.sohamsen.me/api/paste?key=121o2
# {"success":true,"data":{"key":"121o2","content":"Ciallo~(∠・ω< )⌒★","encrypted":true,"passwordProtected":true,"initVector":"27DIWK00yDiGx004","language":"plaintext"}}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions