yarn install
to install packages
yarn dev
to start the express server
yarn test
to run the test
POST /aes/encrypt
Name | Type | Description |
---|---|---|
plain_text | String | Text to encrypt |
aes_key | String | Encryption Key |
Success response - 202
Name | Type | Description |
---|---|---|
cipher_text | String | encrypted text |
Error response - 400
Name | Type | Description |
---|---|---|
errorMsg | String | Error message |
POST /aes/decrypt
Name | Type | Description |
---|---|---|
cipher_text | String | Text to decrypt |
aes_key | String | Encryption Key |
Success response - 202
Name | Type | Description |
---|---|---|
plain_text | String | decrypted text |
base64 | String | decrypted text in encoding Base 64 |
Error response - 400
Name | Type | Description |
---|---|---|
errorMsg | String | Error message |