- 取亂數
- def uuid = UUID.randomUUID().toString();
- vars.put("id", uuid);
- 字串拆解、合併,Base64 編碼
- char0 = (char)0
- jid = vars.get("jid")
- token = vars.get("token")
- def(name, domain) = jid.split("@")
- plain = jid + char0 + name + char0 + token
- encoded = plain.bytes.encodeBase64().toString()
- vars.put("encoded", encoded)
沒有留言:
張貼留言