com.geirolz.app.toolkit.config.Secret.DeObfuser
See theDeObfuser companion trait
Attributes
-
Companion
-
trait
-
Graph
-
-
Supertypes
-
class Object
trait Matchable
class Any
-
Self type
-
Members list
Create a new DeObfuser which de-obfuscate value using a Xor formula.
Create a new DeObfuser which de-obfuscate value using a Xor formula.
Formula: obfuscated[i] ^ (key[len - i] ^ (len * i))
Example:
//Index = 1 2 3 4 5
//Obfuscated = [0x9c][0x12][0xae][0x83][0x2e]
//Key = [0x9d][0x10][0xad][0x87][0x2b]
//Plain = [0x01][0x02][0x03][0x04][0x05]
Attributes
Create a new DeObfuser which de-obfuscate value using a custom formula.
Create a new DeObfuser which de-obfuscate value using a custom formula.
Value parameters
-
f
-
the function which de-obfuscate the value
Attributes