+1 for salt anf IV refactoring
but why using capital letter for salt?