Skip to main content
Version: 5.7.x.x Java 8 ELS

Encrypter class function

The Encrypter class is intended for integrators without basic knowledge of cryptography.

Added features compared to Crypto class:

  • A basic KDF function is used to generate proper encryption keys based on arbitrary length passwords.
  • Randomized IVs are automatically used.
  • The ciphered data is Base64 encoded internally.
FunctionDescriptionSample
nevis.crypto.encrypter.new(password)Instantiate a new encrypter object. Password length is arbitrary. Longer passwords offer encrypter object. Phe password is interpreted as an ASCII string (1 byte per character), but it is not limited to ASCIIencrypter object. Por non-ASCII values, use \x01 - \xFF, but note that it cannot contain \x00. If there is a \x00 character in the password, then the encrypter ignores it and the following part.cryptoEngine = nevis.crypto.encrypter.new("12345678901234567890123456789012")