unicode实际上是ascii编码表的16进制 ,不过ascii码表只有127个,
那么换行符Line feed \n转换为 unicode 也就是把\n对应的10进制 是 10 转换为16进制就是A,
就是 \u000A 下面包含我的名字,哈哈
println("i am line feed "+'\u000A'+" hello"+'\u7F57'+'\u6b63')
for(value in '0' .. 'z'){
println("ASCII CHAR ${value} DEC ${value.toByte()} HEX ${Integer.toHexString(value.toInt()).toUpperCase()}")
}
println("------------------------------")
//all ascii
for(value in 0 ..127){
println("ASCII CHAR ${value.toChar()} DEC ${value} HEX ${Integer.toHexString(value.toInt()).toUpperCase()}")
}
println("------------------------------")
// chinese unicode
for(value in 0x4e00 ..0x9fa5){
println("ASCII CHAR ${value.toChar()} DEC ${value.toInt()} HEX ${Integer.toHexString(value).toUpperCase()}")
}
0-127 其他就不输出了,太长了我擦
ASCII CHAR DEC 0 HEX 0
ASCII CHAR � DEC 1 HEX 1
ASCII CHAR � DEC 2 HEX 2
ASCII CHAR � DEC 3 HEX 3
ASCII CHAR � DEC 4 HEX 4
ASCII CHAR � DEC 5 HEX 5
ASCII CHAR � DEC 6 HEX 6
ASCII CHAR � DEC 7 HEX 7
ASCII CHAR DEC 8 HEX 8
ASCII CHAR DEC 9 HEX 9
ASCII CHAR
DEC 10 HEX A
ASCII CHAR � DEC 11 HEX B
ASCII CHAR DEC 12 HEX C
DEC 13 HEX D
ASCII CHAR � DEC 14 HEX E
ASCII CHAR � DEC 15 HEX F
ASCII CHAR � DEC 16 HEX 10
ASCII CHAR � DEC 17 HEX 11
ASCII CHAR � DEC 18 HEX 12
ASCII CHAR � DEC 19 HEX 13
ASCII CHAR � DEC 20 HEX 14
ASCII CHAR � DEC 21 HEX 15
ASCII CHAR � DEC 22 HEX 16
ASCII CHAR � DEC 23 HEX 17
ASCII CHAR � DEC 24 HEX 18
ASCII CHAR � DEC 25 HEX 19
ASCII CHAR � DEC 26 HEX 1A
ASCII CHAR � DEC 27 HEX 1B
ASCII CHAR � DEC 28 HEX 1C
ASCII CHAR � DEC 29 HEX 1D
ASCII CHAR � DEC 30 HEX 1E
ASCII CHAR � DEC 31 HEX 1F
ASCII CHAR DEC 32 HEX 20
ASCII CHAR ! DEC 33 HEX 21
ASCII CHAR " DEC 34 HEX 22
ASCII CHAR # DEC 35 HEX 23
ASCII CHAR $ DEC 36 HEX 24
ASCII CHAR % DEC 37 HEX 25
ASCII CHAR & DEC 38 HEX 26
ASCII CHAR ' DEC 39 HEX 27
ASCII CHAR ( DEC 40 HEX 28
ASCII CHAR ) DEC 41 HEX 29
ASCII CHAR * DEC 42 HEX 2A
ASCII CHAR + DEC 43 HEX 2B
ASCII CHAR , DEC 44 HEX 2C
ASCII CHAR - DEC 45 HEX 2D
ASCII CHAR . DEC 46 HEX 2E
ASCII CHAR / DEC 47 HEX 2F
ASCII CHAR 0 DEC 48 HEX 30
ASCII CHAR 1 DEC 49 HEX 31
ASCII CHAR 2 DEC 50 HEX 32
ASCII CHAR 3 DEC 51 HEX 33
ASCII CHAR 4 DEC 52 HEX 34
ASCII CHAR 5 DEC 53 HEX 35
ASCII CHAR 6 DEC 54 HEX 36
ASCII CHAR 7 DEC 55 HEX 37
ASCII CHAR 8 DEC 56 HEX 38
ASCII CHAR 9 DEC 57 HEX 39
ASCII CHAR : DEC 58 HEX 3A
ASCII CHAR ; DEC 59 HEX 3B
ASCII CHAR < DEC 60 HEX 3C
ASCII CHAR = DEC 61 HEX 3D
ASCII CHAR > DEC 62 HEX 3E
ASCII CHAR ? DEC 63 HEX 3F
ASCII CHAR @ DEC 64 HEX 40
ASCII CHAR A DEC 65 HEX 41
ASCII CHAR B DEC 66 HEX 42
ASCII CHAR C DEC 67 HEX 43
ASCII CHAR D DEC 68 HEX 44
ASCII CHAR E DEC 69 HEX 45
ASCII CHAR F DEC 70 HEX 46
ASCII CHAR G DEC 71 HEX 47
ASCII CHAR H DEC 72 HEX 48
ASCII CHAR I DEC 73 HEX 49
ASCII CHAR J DEC 74 HEX 4A
ASCII CHAR K DEC 75 HEX 4B
ASCII CHAR L DEC 76 HEX 4C
ASCII CHAR M DEC 77 HEX 4D
ASCII CHAR N DEC 78 HEX 4E
ASCII CHAR O DEC 79 HEX 4F
ASCII CHAR P DEC 80 HEX 50
ASCII CHAR Q DEC 81 HEX 51
ASCII CHAR R DEC 82 HEX 52
ASCII CHAR S DEC 83 HEX 53
ASCII CHAR T DEC 84 HEX 54
ASCII CHAR U DEC 85 HEX 55
ASCII CHAR V DEC 86 HEX 56
ASCII CHAR W DEC 87 HEX 57
ASCII CHAR X DEC 88 HEX 58
ASCII CHAR Y DEC 89 HEX 59
ASCII CHAR Z DEC 90 HEX 5A
ASCII CHAR [ DEC 91 HEX 5B
ASCII CHAR \ DEC 92 HEX 5C
ASCII CHAR ] DEC 93 HEX 5D
ASCII CHAR ^ DEC 94 HEX 5E
ASCII CHAR _ DEC 95 HEX 5F
ASCII CHAR ` DEC 96 HEX 60
ASCII CHAR a DEC 97 HEX 61
ASCII CHAR b DEC 98 HEX 62
ASCII CHAR c DEC 99 HEX 63
ASCII CHAR d DEC 100 HEX 64
ASCII CHAR e DEC 101 HEX 65
ASCII CHAR f DEC 102 HEX 66
ASCII CHAR g DEC 103 HEX 67
ASCII CHAR h DEC 104 HEX 68
ASCII CHAR i DEC 105 HEX 69
ASCII CHAR j DEC 106 HEX 6A
ASCII CHAR k DEC 107 HEX 6B
ASCII CHAR l DEC 108 HEX 6C
ASCII CHAR m DEC 109 HEX 6D
ASCII CHAR n DEC 110 HEX 6E
ASCII CHAR o DEC 111 HEX 6F
ASCII CHAR p DEC 112 HEX 70
ASCII CHAR q DEC 113 HEX 71
ASCII CHAR r DEC 114 HEX 72
ASCII CHAR s DEC 115 HEX 73
ASCII CHAR t DEC 116 HEX 74
ASCII CHAR u DEC 117 HEX 75
ASCII CHAR v DEC 118 HEX 76
ASCII CHAR w DEC 119 HEX 77
ASCII CHAR x DEC 120 HEX 78
ASCII CHAR y DEC 121 HEX 79
ASCII CHAR z DEC 122 HEX 7A
ASCII CHAR { DEC 123 HEX 7B
ASCII CHAR | DEC 124 HEX 7C
ASCII CHAR } DEC 125 HEX 7D
ASCII CHAR ~ DEC 126 HEX 7E
ASCII CHAR � DEC 127 HEX 7F
注册机穷举破解
var startTime = Date().time;
var count = 16 * 16 * 16;
var index = 0;
for (value in 0x000..0xfffffff) {
index++;
println("cardno :5684000_${Integer.toHexString(value)}")
}
// Thread.sleep(5000)
var endTime = Date().time;
var ms = endTime - startTime;
var second = (endTime - startTime) / 1000;
println(",final count:$index ,count: ${count} speed time :${second}s ${ms}ms")
http://lmgtfy.com/?q=unicode+%E5%AD%97%E7%AC%A6+%E8%8C%83%E5%9B%B4
http://www.cnblogs.com/chenwenbiao/archive/2011/08/17/2142718.html