Skip to content

Instantly share code, notes, and snippets.

@deltam
Last active December 26, 2015 19:08
Show Gist options
  • Save deltam/7198909 to your computer and use it in GitHub Desktop.
Save deltam/7198909 to your computer and use it in GitHub Desktop.
名前欄素数のデコード。
user=> (def my-name (.toByteArray (BigInteger. "7234307623547114003")))
#'user/my-name
user=> (-> (java.io.FileOutputStream. "name.txt") .getChannel (.write (java.nio.ByteBuffer/wrap my-name)))
8
; Ctrl-D
; $ cat name.txt
; deltam
@deltam
Copy link
Author

deltam commented Oct 28, 2013

違法素数も同じ感じでデコードできますです。

http://ja.wikipedia.org/wiki/%E9%81%95%E6%B3%95%E7%B4%A0%E6%95%B0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment