You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Data encryption. Both parameters, the encryption algorithm and the key string, must be provided.
44
46
45
-
Availabe values: `xor`
47
+
Availabe values: `xor`, `aes256`, `rc4`
46
48
47
49
All supported encryption algorithms are described in details below.
48
50
49
51
**`-e / --encoding <value>`**[optional]
50
52
51
53
Data encoding. Often used as obfuscation to confuse analysis or changes in the entropy level of data.
52
54
53
-
Available values: `base64`, `ipv4`, `mac`
55
+
Available values: `base32`, `base64`, `ipv4`, `mac`
54
56
55
57
All supported encoding algorithms are described in details below.
56
58
@@ -60,11 +62,28 @@ All supported encoding algorithms are described in details below.
60
62
61
63
Typical simple XOR encryption (`a^b`). Each byte is XORed with the byte from the key.
62
64
65
+
#### **`aes256`**[28 bytes overhead]
66
+
67
+
AES-256-GCM with the 32-bytes long key derived from SHA-256 hash function.
68
+
69
+
Ciphertext format: `nonce || ciphertext`. Nonce is stored in the first 12 bytes, followed by the encrypted data and authentication tag (the tag is appended automatically by GCM inside ciphertext).
70
+
71
+
Standard Go implementation of AES encryption:`crypto/aes`
72
+
Standard Go implementation of SHA-256 key derivation: `crypto/sha256`
73
+
74
+
#### **`rc4`**[0% overhead]
75
+
76
+
Standard Go implementation of RC4 encryption: `crypto/rc4`
77
+
63
78
## Supported encoding algorithms
64
79
80
+
#### **`base32`**[60–65% overhead]
81
+
82
+
Standard Go implementation of Base32 encoding: `encoding/base32`
83
+
65
84
#### **`base64`**[33%-37% overhead]
66
85
67
-
Standard Base64 encoding. We are using [the standard Go library functions here](https://pkg.go.dev/encoding/base64).
86
+
Standard Go implementation of Base64 encoding: `encoding/base64`
68
87
69
88
#### **`ipv4`**[100%-300% overhead]
70
89
@@ -111,5 +130,4 @@ The output (array of bytes) looks exactly like this in memory:
0 commit comments