Fixing bug in encrypt/decrypt when seed > 9