필요할 때 검색하면 안나와서 기록 Go언어로 Base64 인코딩/디코딩 하는 방법 Sample Code package main import ( "encoding/base64" "fmt" ) func main() { message := []byte("Hello, World!") encodedMessage := base64.StdEncoding.EncodeToString(message) fmt.Println(encodedMessage) // encodedMessage "SGVsbG8sIFdvcmxkIQ==" decodedMessage, err := base64.StdEncoding.DecodeString(encodedMessage) if err != nil { fmt.Println("Error decodin..
왜? 일반인의 관점에서 암호화라면 암호화긴 하지만... 컴퓨터 사이언스 관점에서 암호화라고 하면 의미가 다르다. Base64는 'Encode코드화/Decode복원'이다. 전송시 깨짐을 방지하고 문자열의 완결을 보장하기 위해 사용하는 것이고 다른사람이 알아보지 못 하도록 하는 암호화는 아니다. 기술설명은 생략. Sample 3가지 Java 기본 패키지 Apache codec testCompile group: 'commons-codec', name: 'commons-codec', version: '1.11' Spring core testCompile group: 'org.springframework', name: 'spring-core', version: '5.1.0.RELEASE' import org.ju..
- Total
- Today
- Yesterday
- Scala
- git
- index
- ActiveRecord
- RubyOnRails
- Source
- HelloWorld
- error
- 사용법
- Regex
- Knowhow
- Mac
- vscode
- JQuery
- Snippet
- cdn
- gradle
- enum
- URLEncode
- BASE64
- sample
- version
- ChatGPT
- urldecode
- 노가다
- Algorithm
- golang
- spring
- Kotlin
- js
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |