Class Security

java.lang.Object
io.github.javaezlib.javaez.extensions.Security

public class Security extends Object
The JavaEZ Security extension. Allows different security-related functions.
Since:
1.6
  • Constructor Details

    • Security

      public Security()
  • Method Details

    • lockText

      public static String lockText(String text, String password)
      Locks a piece of text with a password. (For technical people: This function encrypts the data in the text using AES-256-CBC with a PBKDF2-based cipher generated from the password)
      Parameters:
      text - The text to lock
      password - The password to use
      Returns:
      The locked text
      Since:
      1.6
    • unlockText

      public static String unlockText(String text, String password)
      Unlocks some text that was locked using lockText(String, String). (For technical people: This function decrypts the data in the text using AES-256-CBC with a PBKDF2-based cipher generated from the password)
      Parameters:
      text - The locked text to unlock
      password - The password used to lock the text
      Returns:
      The unlocked text
      Since:
      1.6