C# Class Zyrenth.Zora.SecretParser

A convenience class used to convert raw secret data into the display format used by the games.
Show file Open project: kabili207/zora-sharp

Public Methods

Method Description
CreateString ( byte data ) : string

Creates a string representation of a secret byte array.

This method always returns the secret formatted as →N♥Nh

ParseSecret ( string secret ) : byte[]

Converts a secret string into a byte array.

This method is fairly flexible in what it will accept. 6●sW↑ 6 circle s W up 6{circle}sW{up} 6cIrClesW↑ The lack of vowels in the normal secret keyboard is what makes the last format possible. Whitespace in the secret is ignored so long as it doesn't separate any keywords. Surrounding the keywords in curly braces is not required; they are supported in order to maintain compatibility with how many users share secrets online.

Method Details

CreateString() public static method

Creates a string representation of a secret byte array.
This method always returns the secret formatted as →N♥Nh
/// The contains values that cannot be used in a secret. ///
public static CreateString ( byte data ) : string
data byte The secret data
return string

ParseSecret() public static method

Converts a secret string into a byte array.
This method is fairly flexible in what it will accept. 6●sW↑ 6 circle s W up 6{circle}sW{up} 6cIrClesW↑ The lack of vowels in the normal secret keyboard is what makes the last format possible. Whitespace in the secret is ignored so long as it doesn't separate any keywords. Surrounding the keywords in curly braces is not required; they are supported in order to maintain compatibility with how many users share secrets online.
/// The contains invalid symbols. ///
public static ParseSecret ( string secret ) : byte[]
secret string Secret.
return byte[]