Package

play.api.libs

crypto

Permalink

package crypto

Visibility
  1. Public
  2. All

Type Members

  1. class AESCTRCrypter extends AESCrypter

    Permalink

    Symmetric encryption using AES/CTR/NoPadding.

  2. class AESCrypterProvider extends Provider[AESCrypter]

    Permalink
    Annotations
    @Singleton()
  3. trait CSRFTokenSigner extends AnyRef

    Permalink

    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.

  4. class CSRFTokenSignerProvider extends Provider[CSRFTokenSigner]

    Permalink
    Annotations
    @Singleton()
  5. trait CookieSigner extends AnyRef

    Permalink

    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.

  6. class CookieSignerProvider extends Provider[CookieSigner]

    Permalink
    Annotations
    @Singleton()
  7. case class CryptoConfig(secret: String, provider: Option[String] = None, aesTransformation: String = "AES/CTR/NoPadding") extends Product with Serializable

    Permalink

    Configuration for Crypto

    Configuration for Crypto

    secret

    The application secret

    provider

    The crypto provider to use

    aesTransformation

    The AES transformation to use

  8. class CryptoConfigParser extends Provider[CryptoConfig]

    Permalink
    Annotations
    @Singleton()
  9. class CryptoException extends RuntimeException

    Permalink

    Exception thrown by the Crypto APIs.

  10. class DefaultCSRFTokenSigner extends CSRFTokenSigner

    Permalink

    This class is used for generating random tokens for CSRF.

  11. class HMACSHA1CookieSigner extends CookieSigner

    Permalink

    Uses an HMAC-SHA1 for signing cookies.

  12. trait AESCrypter extends AnyRef

    Permalink

    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.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.5.0) This method is deprecated and will be removed in future versions.

Value Members

  1. object CSRFTokenSigner

    Permalink

Ungrouped