public WrappedValue(string value) { var stripped = value.Substring(0, value.Length - 1).Substring(4).Split(':'); EncryptedAESKey = Hex.ToByte(stripped[0]); IV = Hex.ToByte(stripped[1]); EncryptedValue = Hex.ToByte(stripped[2]); }
private byte[] FindPublicKey(Dictionary <string, dynamic> config) { byte[] publikcKey = null; if (config.ContainsKey("PublicKey")) { publikcKey = Hex.ToByte((string)config["PublicKey"]); } return(publikcKey); }