Cryptography utilities in Scala