字段加密
Last updated
processors:
- Type: processor_encrypt
SourceKeys:
- "important"
EncryptionParameters:
Key: "0000000000000000000000000000000000000000000000000000000000000000""normal_key": "1",
"another_normal_key": "2",
"important": "0123456""normal_key": "1",
"another_normal_key": "2",
"important": "bc3acdbd40c283d91f7dc7010fd7d2b1"$ printf "%b" '\xbc\x3a\xcd\xbd\x40\xc2\x83\xd9\x1f\x7d\xc7\x01\x0f\xd7\xd2\xb1' > ciphertext
$ openssl enc -d -aes-256-cbc -iv 00000000000000000000000000000000 \
-K 0000000000000000000000000000000000000000000000000000000000000000 \
-in ciphertext -out plaintext
$ cat plaintext
0123456"normal_key": "1",
"another_normal_key": "2",
"important": "0123456"processors:
- Type: processor_encrypt
SourceKeys:
- "important"
EncryptionParameters:
Key: "0000000000000000000000000000000000000000000000000000000000000000"
IV: "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF""normal_key": "1",
"another_normal_key": "2",
"important": "af6428af62d698be617b82cffd9e109b"$ printf "%b" '\xaf\x64\x28\xaf\x62\xd6\x98\xbe\x61\x7b\x82\xcf\xfd\x9e\x10\x9b' > ciphertext
$ openssl enc -d -aes-256-cbc -iv FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF \
-K 0000000000000000000000000000000000000000000000000000000000000000 \
-in ciphertext -out plaintext
$ cat plaintext
0123456printf "{\"Key\": \"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF\"}" > /home/admin/aes_key.json"normal_key": "1",
"another_normal_key": "2",
"important": "0123456"processors:
- Type: processor_encrypt
SourceKeys:
- "important"
EncryptionParameters:
KeyFilePath: "/home/admin/aes_key.json""normal_key": "1",
"another_normal_key": "2",
"important": "bc3acdbd40c283d91f7dc7010fd7d2b1"$ printf "%b" '\xbc\x3a\xcd\xbd\x40\xc2\x83\xd9\x1f\x7d\xc7\x01\x0f\xd7\xd2\xb1' > ciphertext
$ openssl enc -d -aes-256-cbc -iv 00000000000000000000000000000000 \
-K 0000000000000000000000000000000000000000000000000000000000000000 \
-in ciphertext -out plaintext
$ cat plaintext
0123456