CHANGED:update the layout with orientation change,applied the hash256/HMAC algorithm function;