The password is secured using salt and hash technique. The salt is generated using SecureRandom and Hash using MessageDigest.