You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MessageDigest md = MessageDigest.getInstance("SHA"); // We use the SHA algorithm for encryption
md.update(user.getBytes()); //The update function does not take string for updating therefore we convert the string to bytes and then update them. Also this is because the bytes are digested and not the whole string
md.update(password.getBytes()); //PAsssword to bytes and then updated.
md.update(makeBytes(t1,q1)); //the random number and the timestamp are zipped together and bytes are made then on the whole it is updated to the digest variable.