Username ABC
Password DEF
Salt = Username + Password IE; ABCDEF(saltkey)
Now, this salt key is hashed using SHA256 algorithm and the output for the saltkey(ABCDEF) after hashing it is: jjaiBx04mbD1ZvsLKuG6PyBFfJcYbl7iCnDCsi2l4tk=
Now how do I truncate this to a smaller hash so that the result is just the first 10 characters of it let say: jjaiBx04mb