diff --git a/src/main/java/net/knarcraft/bookswithoutborders/utility/EncryptionHelper.java b/src/main/java/net/knarcraft/bookswithoutborders/utility/EncryptionHelper.java index e97a11d..c38d12f 100644 --- a/src/main/java/net/knarcraft/bookswithoutborders/utility/EncryptionHelper.java +++ b/src/main/java/net/knarcraft/bookswithoutborders/utility/EncryptionHelper.java @@ -1,5 +1,15 @@ package net.knarcraft.bookswithoutborders.utility; +import net.knarcraft.bookswithoutborders.BooksWithoutBorders; +import net.knarcraft.bookswithoutborders.EncryptionStyle; +import net.knarcraft.bookswithoutborders.GenenCrypt; +import net.knarcraft.bookswithoutborders.SubstitutionCipher; +import org.bukkit.entity.Player; +import org.bukkit.inventory.meta.BookMeta; + +import java.util.ArrayList; +import java.util.List; + public class EncryptionHelper { /** @@ -15,4 +25,35 @@ public class EncryptionHelper { return integerKey.toString(); } + /** + * Encrypts the pages of a book + * @param book
The book to encrypt
+ * @param styleThe encryption style to use
+ * @param integerKeyThe encryption key to use
+ * @param playerThe player trying to encrypt a book
+ * @returnThe pages of the book in encrypted form
+ */ + public static List