View Code? Open in Web Editor
NEW
Quelques tests de programmation en Java
diverstestsjava's Introduction
-
๐ Hi, Iโm @gabywald
-
๐ Iโm interested in #TTRPG : #CyberPunk , #Cthulhu , #DeltaGreen
-
๐ซ How to reach me : https://linktr.ee/gabywald
-
#geek #biogeek #bioinfo #spaceopera #cyber #linux #ubuntu #jdr #roliste #cyberpunk #deltagreen #bioinformatics #dataengineer #data #BigData #OSINT (?)
diverstestsjava's People
Contributors
Watchers
diverstestsjava's Issues
|
// TODO learning how security works here ! |
|
|
|
/** |
|
* Applies ECDSA Signature and returns the result ( as bytes ). |
|
* @param privateKey |
|
* @param input |
This issue was generated by todo based on a TODO
comment in f210ffc when #8 was merged. cc @gabywald.
|
// TODO replace GsonBuilder !! (build json from objet !) |
|
import com.google.gson.GsonBuilder; |
|
|
|
/** |
|
* NoobChain Test and Main Class of BlockChain. |
|
* <br/><a href="https://medium.com/programmers-blockchain/create-simple-blockchain-java-tutorial-from-scratch-6eeed3cb03fa">https://medium.com/programmers-blockchain/create-simple-blockchain-java-tutorial-from-scratch-6eeed3cb03fa</a> |
This issue was generated by todo based on a TODO
comment in f210ffc when #8 was merged. cc @gabywald.
|
* TODO upgrade / improve this method (applySha256) to return null value if any exception inside ! |
|
*/ |
|
public static String applySha256(String input) |
|
throws BlockchainException { |
|
try { |
|
MessageDigest digest = MessageDigest.getInstance("SHA-256"); |
This issue was generated by todo based on a TODO
comment in 4d7f814 when #14 was merged. cc @gabywald.
|
// TODO check alternatives for here when exception occurs !! (builder ?) : see StringUtils.applySha256 comment ! |
|
} catch (BlockchainException e) { |
|
// e.printStackTrace(); |
|
System.out.println(e.getMessage()); |
|
this.id = null; |
|
} |
This issue was generated by todo based on a TODO
comment in 4d7f814 when #14 was merged. cc @gabywald.