Class NitroBlowfish
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
Methods
Decrypt(Stream)
Decrypt a complete stream over itself.
public void Decrypt(Stream stream)
  Parameters
streamStreamThe 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
dataReadOnlySpan<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
data0uintThe first pair of 32-bits to decrypt and store result.
data1uintThe second pair of 32-bits to decrypt and store result.
Encrypt(Stream)
Encrypt a complete stream over itself.
public void Encrypt(Stream stream)
  Parameters
streamStreamThe 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
dataReadOnlySpan<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
data0uintThe first pair of 32-bits to encrypt and store result.
data1uintThe 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)