Table of Contents

Class NitroBlowfish

Namespace
SceneGate.Ekona.Security
Assembly
SceneGate.Ekona.dll

Encrypt and decrypt with the blowfish based algorithm used in DS.

public class NitroBlowfish
Inheritance
NitroBlowfish
Inherited Members

Properties

KeyLength

Gets the required length of the key.

public static int KeyLength { get; }

Property Value

int

Methods

Decrypt(Stream)

Decrypt a complete stream over itself.

public void Decrypt(Stream stream)

Parameters

stream Stream

The stream with the decrypted the data that will be overwritten encrypted.

Decrypt(ReadOnlySpan<byte>)

Decrypt an array of bytes.

public byte[] Decrypt(ReadOnlySpan<byte> data)

Parameters

data ReadOnlySpan<byte>

Data to decrypt.

Returns

byte[]

A new array with the decrypted data.

Decrypt(ref uint, ref uint)

Decrypt a 64-bits value as two pair of 32-bits.

public void Decrypt(ref uint data0, ref uint data1)

Parameters

data0 uint

The first pair of 32-bits to decrypt and store result.

data1 uint

The second pair of 32-bits to decrypt and store result.

Encrypt(Stream)

Encrypt a complete stream over itself.

public void Encrypt(Stream stream)

Parameters

stream Stream

The stream with the decrypted the data that will be overwritten encrypted.

Encrypt(ReadOnlySpan<byte>)

Encrypt an array of bytes.

public byte[] Encrypt(ReadOnlySpan<byte> data)

Parameters

data ReadOnlySpan<byte>

Data to encrypt.

Returns

byte[]

A new array with the encrypted data.

Encrypt(ref uint, ref uint)

Encrypt a 64-bits value as two pair of 64-bits.

public void Encrypt(ref uint data0, ref uint data1)

Parameters

data0 uint

The first pair of 32-bits to encrypt and store result.

data1 uint

The second pair of 32-bits to encrypt and store result.

Initialize(string, int, int, byte[])

Initialize the algorithm.

public void Initialize(string idText, int level, int modulo, byte[] key)

Parameters

idText string

The ID code to initialize the key.

level int

The level of key initialization.

modulo int

The modulo to initialize the key.

key byte[]

The key data of 0x1048 bytes.