Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
| 31 |
Tags
- Reflect
- CustomTab
- traits
- kotlin
- web
- async
- RAII
- type_traits
- coroutines
- SHA512
- Chrono
- AES
- sha256
- Observer
- Scala
- design pattern
- Android
- go
- program
- ranges
- sprintf
- c++
- template
- haskell
- Clojure
- WebView
- Functional
- ChromeTab
- SHA1
- stringprintf
Archives
- Today
- Total
목록AES (1)
프로그래밍 검색 블로그
go AES 암호화
package main import ( "crypto/aes" "crypto/cipher" "crypto/rand" "encoding/base64" "fmt" "io" ) type AESCipher struct { block cipher.Block } func NewAesCipher(key []byte) (*AESCipher, error) { block, err := aes.NewCipher(key) if err != nil { return nil, err } return &AESCipher{block}, nil } func (a *AESCipher) EncryptString(s string) string { byteString := []byte(s) encryptByteArray := make([]by..
go
2018. 5. 22. 14:05