|
Play Framework/Scala example source code file (CryptoSpec.scala)
The CryptoSpec.scala Play Framework example source code/* * Copyright (C) 2009-2013 Typesafe Inc. <http://www.typesafe.com> */ package play.api.libs import org.specs2.mutable._ import play.api.libs._ object CryptoSpec extends Specification { "Crypto api" should { "be able to encrypt/decrypt text using AES algorithm" in { val text = "Play Framework 2.0" val key = "0123456789abcdef" Crypto.decryptAES(Crypto.encryptAES(text, key), key) must be equalTo text } } } Other Play Framework source code examplesHere is a short list of links related to this Play Framework CryptoSpec.scala source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.