Skip to main content

Posts

Showing posts from March 12, 2019

OpenSSL Command

OpenSSL Command Generate RSA Key openssl genrsa -out private.pem 1024 Sign Document openssl dgst -sha256 -sign private.pem -out data.sig data.txt Get Public Key openssl rsa -in private.pem -pubout > public.pem Verify Signature openssl dgst -sha256 -verify public.pem -signature data.sig data.txt Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

Rest API

Rest API GET:  Retrieve information. GET requests must be safe and idempotent, meaning regardless of how many times it repeats with the same parameters, the results are the same. POST: Request that the resource at the URI do something with the provided entity. Often POST is used to create a new entity, but it can also be used to update an entity. PATCH:  Update only the specified fields of an entity at a URI. A PATCH request is neither safe nor idempotent (RFC 5789). That's because a PATCH operation cannot ensure the entire resource has been updated. PUT: PUT replaces an existing entity. If only a subset of data elements are provided, the rest will be replaced with empty or null. DELETE:  Request that a resource be removed; however, the resource does not have to be removed immediately. It could be an asynchronous or long-running request. Please write comments if you find anything incorrect, or you want to share more information about the topic discussed ab...