This utility makes it easy to deal with Bitcoin private keys and addresses in their native and byte en bitcoin intermediate formats. There is a bunch of information here. The secret exponent is displayed in decimal and in hex. Note that the WIF simply contains the exponent encoded using “hashed base 58”.
The “hashed base 58” encoding is used to represent an integer with a checksum for validity. A 32-bit checksum is appended to the binary form of the integer, forming another integer. Bitcoin clients use public keys to validate that transactions are signed by an entity that has knowledge of the corresponding secret exponent. The x, y value is on the elliptical curve used by bitcoin. Type “help”, “copyright”, “credits” or “license” for more information. This is the internal format that Bitcoin uses in transaction signatures to encode public keys.
There is an uncompressed format, which has a prefix of a single 04 byte, followed by the x and y coordinates, and a compressed format, which has a prefix of 02 or 03 depending upon whether the y coordinate is even or odd, followed by the x coordinate. The hash160 value is the ripemd160 hash of the sha256 hash of the bytestream of the sec version of the key. The bu utility will accept input in nearly any format, automatically determining the input type, and display output of all values that can calculated. Obviously if you enter a Bitcoin address, you won’t get the corresponding WIF! The only thing that it can be converted to is a hash160.