Class EncryptionUtil


  • public class EncryptionUtil
    extends Object
    Utility to password protect files. This takes a password and any text and password protects it. The longer the password, the better the protection.

    Usage

    encrypt - returns an encrypted text with header. isEncrypted - checks if the argument has been encrypted with this utility Don't call decrypt without this decrypt - returns unencrypted contents.

    Note

    This requires a password and a string to be encrypted. The longer the password, the better the protection.

    Created by Jeff Gaynor
    on 7/19/21 at 9:52 AM