Crypto - internal module to handle cryptography
Initializes. It requires the configuration value aeskey.
Returns the base64-encoded form of the SHA512 hash of the data.
Encrypts the plaintext, and returns a base64-encoded version of the encrypted version.
The argument is taken as a base64-encoded, AES-encrypted string. It is decoded and decrypted, the result is returned.
This method returns a signature of the data. The signature is computed as an encrypted hash of the data.
Validates that the signature matches data. The decrypted signature must match the hash of the data.
This module is for internal use in the HammerServer.
The tamper-resistant server, all used modules, and the documentation were written by Karel Kubat / karel@e-tunity.com. Copyright (c) 2009 ff. Distributed under GPLV3.