EncryptedValue

class EncryptedValue(value: ByteArray, salt: ByteArray)

Applies simple XOR encryption to make value harder to identify and extract from process memory.

Constructors

Link copied to clipboard
constructor(value: ByteArray, salt: ByteArray)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Length of encrypted value in bytes.

Link copied to clipboard

Decrypts value and parses as UTF_8 string.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard

Decrypts value and returns raw bytes.

Link copied to clipboard

Decrypts value and calculates SHA256.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun setSalt(newSalt: ByteArray)

Encodes value with newSalt.

Link copied to clipboard

Decrypts value and returns as base 64.

Link copied to clipboard
open override fun toString(): String