Tag:Hexadecimal

  • Knowledge Sharing of Converting Decimal Negative Numbers into Binary, Octal and Hexadecimal Numbers

    Time:2019-8-12

    Programming apes may not be unfamiliar with binary system, which is widely used in computing technology. Binary data is a number represented by two numbers, 0 and 1. But many people will convert binary to integer, but how to use binary to represent negative numbers? Some people would say that adding a negative number before […]

  • VBS Hexadecimal Exchange or Encryption Implementation Code

    Time:2019-8-2

    Design sketch: Codes are encapsulated into functions for easy invocation: Copy codeThe code is as follows: Key = www-enun-net”Do not use numbers Wscript.echo now & “, encryption:”MyData = ReadBin(“test.jpg”)EnData = Encoder(MyData)WriteBin “E_test.jpg”, EnDataWscript.echo now & “, encryption:” Wscript.echo now & “, decryption:”MyData = ReadBin(“E_test.jpg”)UnData = Uncoder(MyData)WriteBin “U_test.jpg”, UnDataWscript.echo now & “, decryption:” Function ReadBin(FileName) Dim Stream, […]