OneTimeString (byte[] password, byte[] data) { byte[] plain = decryptData(password, data); int len = ((plain[0] & 0xff) << 24) + ((plain[1] & 0xff) << 16) + ((plain[2] & 0xff) << 8) + (plain[3] & 0xff); if (len < 0 || len > plain.length - 4) { throw new IllegalStateException("Unmatched password is used"); } return OneTimeStringKt.OneTimeString(plain, 4, len); }