Obfuscator for strings and byte-arrays. NOTE: this class is not cryptographically secure!
More...
|
static byte | GenerateIV () |
| Generates a secure IV for the obfuscation.
|
|
static byte[] | Obfuscate (byte[] data, byte IV=DEFAULT_IV) |
| Obfuscate a byte-array.
|
|
static byte[] | Obfuscate (string data, byte IV=DEFAULT_IV, Encoding? encoding=null) |
| Obfuscate a string.
|
|
static byte[] | Deobfuscate (byte[] obfuscatedData, byte IV=DEFAULT_IV) |
| De-obfuscate a byte-array.
|
|
Obfuscator for strings and byte-arrays. NOTE: this class is not cryptographically secure!
◆ Deobfuscate()
static byte[] BogaNet.Util.Obfuscator.Deobfuscate |
( |
byte[] | obfuscatedData, |
|
|
byte | IV = DEFAULT_IV ) |
|
static |
De-obfuscate a byte-array.
- Parameters
-
obfuscatedData | byte-array to de-obfuscate |
IV | Initial-Vector byte (optional) |
- Returns
- De-obfuscated byte-array
- Exceptions
-
◆ GenerateIV()
static byte BogaNet.Util.Obfuscator.GenerateIV |
( |
| ) |
|
|
static |
Generates a secure IV for the obfuscation.
- Returns
- IV as byte
◆ Obfuscate() [1/2]
static byte[] BogaNet.Util.Obfuscator.Obfuscate |
( |
byte[] | data, |
|
|
byte | IV = DEFAULT_IV ) |
|
static |
Obfuscate a byte-array.
- Parameters
-
data | byte-array to obfuscate |
IV | Initial-Vector byte (optional) |
- Returns
- Obfuscated byte-array
- Exceptions
-
◆ Obfuscate() [2/2]
static byte[] BogaNet.Util.Obfuscator.Obfuscate |
( |
string | data, |
|
|
byte | IV = DEFAULT_IV, |
|
|
Encoding? | encoding = null ) |
|
static |
Obfuscate a string.
- Parameters
-
data | string to obfuscate |
IV | Initial-Vector byte (optional) |
encoding | Encoding of the string (optional, default: UTF8) |
- Returns
- Obfuscated string
- Exceptions
-
The documentation for this class was generated from the following file:
- /Users/stefanlaubenberger/Projects/CSharp/BogaNet/BogaNet.Common/Util/Obfuscator.cs