Last active
December 26, 2015 19:08
-
-
Save deltam/7198909 to your computer and use it in GitHub Desktop.
名前欄素数のデコード。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
違法素数も同じ感じでデコードできますです。
http://ja.wikipedia.org/wiki/%E9%81%95%E6%B3%95%E7%B4%A0%E6%95%B0