Package dev.lavalink.youtube.cipher
Class SignatureCipher
java.lang.Object
dev.lavalink.youtube.cipher.SignatureCipher
Describes one signature cipher
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(@NotNull String text, @NotNull ScriptEngine scriptEngine) transform(@NotNull String text, @NotNull ScriptEngine scriptEngine)
-
Field Details
-
timestamp
-
globalVars
-
sigActions
-
sigFunction
-
nFunction
-
rawScript
-
-
Constructor Details
-
SignatureCipher
-
-
Method Details
-
apply
public String apply(@NotNull @NotNull String text, @NotNull @NotNull ScriptEngine scriptEngine) throws ScriptException, NoSuchMethodException - Parameters:
text- Text to apply the cipher on- Returns:
- The result of the cipher on the input text
- Throws:
ScriptExceptionNoSuchMethodException
-
transform
public String transform(@NotNull @NotNull String text, @NotNull @NotNull ScriptEngine scriptEngine) throws ScriptException, NoSuchMethodException - Parameters:
text- Text to transformscriptEngine- JavaScript engine to execute function- Returns:
- The result of the n parameter transformation
- Throws:
ScriptExceptionNoSuchMethodException
-