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
- RAII
- coroutines
- sha256
- Chrono
- web
- CustomTab
- Reflect
- SHA1
- template
- sprintf
- Functional
- AES
- SHA512
- program
- async
- stringprintf
- design pattern
- Clojure
- Android
- traits
- ranges
- kotlin
- type_traits
- ChromeTab
- WebView
- go
- Observer
- Scala
- c++
- haskell
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