How to generate private key using Kotlin

Q. What is Bitcoin Address ?

Ans: A Bitcoin address is a random string of hexadecimal characters generated based on certain algorithm that are used within the Bitcoin network to send and receive bitcoins.

Technically speaking private key is a 256 random bits generated by using a hashing algorithm based on SHA256 . The bitcoin address is generated from the public part of the ECDSA ,hashed using SHA-256 and RIPEMD-160 and then finally encoding the key using Base58 checked encoding.