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
const express = require('express') | |
const serverless = require('serverless-http') | |
const createRouter = require('./routes/createURL') | |
/* TODO: delete module 구현하기*/ | |
// const deleteRouter = require('./routes/redirectURL') | |
const app = express() |
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
#include "library.h" | |
//중복없는 랜덤 숫자 생성 및 초기화 | |
heap_t * initHeap() { | |
heap_t * heap = (heap_t *)malloc(sizeof(heap_t)); | |
bool checkExist[MAX_NUM+1] = { false, }; | |
int i,temp; |
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
import javax.crypto.Mac; | |
import javax.crypto.spec.SecretKeySpec; | |
//HMAC 인코딩 및 Hex로 변환하는 함수 정의 | |
public class Encryptor { | |
private static final String HMAC_SHA512 = "HmacSHA512"; | |
public static String getHmacSha512(String key, String data) { | |
Mac sha512_HMAC; | |
String result = null; |