added crypting and hashing to the client api, using TwoFish and PBKDF2