HexEncryption

com.phasmidsoftware.tableparser.crypto.HexEncryption
See theHexEncryption companion trait
object HexEncryption

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def bytesToHexString(bytes: Array[Byte]): IO[String]

Show the given bytes as hexadecimal text.

Show the given bytes as hexadecimal text.

Value parameters

bytes

an Array[Byte].

Attributes

Returns

an IO of String.

def decryptRow[A : HexEncryption](keyFunction: String => String)(row: Seq[String]): IO[String]

Method to decrypt a row consisting of an identifier and a Hex string.

Method to decrypt a row consisting of an identifier and a Hex string.

Type parameters

A

the cipher algorithm (for which there must be evidence of HexEncryption[A]).

Value parameters

keyFunction

a function to yield the raw cipher key from the value of the ID column (said value might well be ignored).

row

a two-element sequence of Strings: the id and the hex string. * @tparam A the cipher algorithm.

Attributes

Returns

a IO[String].

def hexStringToBytes(hex: String): IO[Array[Byte]]

Decode the given String in hexadecimal as an array of Byte.

Decode the given String in hexadecimal as an array of Byte.

Value parameters

hex

the hex String.

Attributes

Returns

Array[Byte].