This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package handler | |
import ( | |
"encoding/json" | |
"net/http" | |
) | |
// respondJSON makes the response with payload as json format | |
func respondJSON(w http.ResponseWriter, status int, payload interface{}) { | |
response, err := json.Marshal(payload) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$toencrypt = 'The Big Blue House'; | |
$key = 'dGVzdCB0ZXN0IHRlc3QgdGVzdA=='; | |
$cipher = 'AES-128-CBC'; | |