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