carloscn / carloscn/structstudy
user03:字符串Hex格式Key转换为数组(hex-key-to-array)
Open
Lang-c/c++
Level-middle
一般问题
字符串
数组
- Dominant language
- C
- Stars
- 4
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
### 问题描述
用户使用Key和IV是HEX字符串的形式:
```C
#define KEY "60EaE9193555278880261c1995531f87B5097E494684F0CE1DBB50ABF625A82f" // strlen is 64
#define IV "631179b14B3D7D2E1E2D484360EAe919" // strlen is 32
```
请转化成数组,例如上述Key转化为`uint8_t array[] = {0x60, 0xea, 0xe9 ....} `,注意Key和IV中可能同时存在大写和小写字母,请正确处理它们。
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.