C# Class Zyrenth.Zora.SecretParser

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

Méthodes publiques

Méthode 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 méthode

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
Résultat string

ParseSecret() public static méthode

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.
Résultat byte[]