RSA256 알고리즘 - 비대칭키 암호
엄청 큰 숫자는 소인수분해하기가 힘들다는 것을 이용한다.
아래 설명은 개인적으로 이해한 뇌피셜의 표현이다.
6 = 2 x 3;
import path from 'path' | |
import pino from 'pino' | |
const STACKTRACE_OFFSET = 2 | |
const LINE_OFFSET = 7 | |
const { symbols : { asJsonSym} } = pino | |
function traceCaller (pinoInstance) { | |
const get = (target, name) => name === asJsonSym ? asJson : target[name] |
'use client' | |
import { test } from './server' | |
import { useServerAction } from './hook' | |
export default function Home() { | |
const { data, loading, error, execute: testAction } = useServerAction(test) | |
if (loading) return <div>Loading...</div> | |
if (error) return <div>Error: {error.message}</div> |
The package that linked you here is now pure ESM. It cannot be require()
'd from CommonJS.
This means you have the following choices:
import foo from 'foo'
instead of const foo = require('foo')
to import the package. You also need to put "type": "module"
in your package.json and more. Follow the below guide.await import(…)
from CommonJS instead of require(…)
.// see: https://github.com/auth0-blog/spring-boot-jwts/blob/master/src/main/java/com/example/security/TokenAuthenticationService.java | |
//Example: | |
val json:String= JwtUntrusted.parseClaimsUntrustedToJson("Bearer xxx") | |
object JwtUntrusted { | |
// requires (gradle): compile group: 'io.jsonwebtoken', name: 'jjwt', version: '0.9.0' | |
private val JSON = jacksonObjectMapper() | |
fun removeSignature(jwt:String) = jwt.replaceAfterLast(".", "").trim() |
version: '4.5' | |
services: | |
# GITLAB | |
gitlab-web: | |
image: 'gitlab/gitlab-ce:latest' | |
restart: always | |
container_name: gitlab-web | |
hostname: '192.168.0.14' | |
environment: |
version: '3.7' | |
networks: | |
traefik: | |
external: true | |
services: | |
pink: |
version: '3' | |
services: | |
traefik: | |
restart: unless-stopped | |
image: traefik:v2.0.2 | |
ports: | |
- "80:80" | |
- "443:443" | |
labels: | |
- "traefik.http.services.traefik.loadbalancer.server.port=8080" |