Symmetric encryption using AES/CTR/NoPadding.
Cryptographic utilities for generating and validating CSRF tokens.
Cryptographic utilities for generating and validating CSRF tokens.
This trait should not be used as a general purpose encryption utility.
Authenticates a cookie by returning a message authentication code (MAC).
Authenticates a cookie by returning a message authentication code (MAC).
This trait should not be used as a general purpose MAC utility.
Configuration for Crypto
Configuration for Crypto
The application secret
The crypto provider to use
The AES transformation to use
Exception thrown by the Crypto APIs.
This class is used for generating random tokens for CSRF.
Uses an HMAC-SHA1 for signing cookies.
Encrypts and decrypts strings using AES.
Encrypts and decrypts strings using AES.
Note that the output from AES/CTR is vulnerable to malleability attacks unless signed with a MAC.
In addition, because this class is hardcoded to use AES, it cannot be used a general purpose Crypter.
It is also not used anywhere internally to the Play code base.
(Since version 2.5.0) This method is deprecated and will be removed in future versions.