samedi 12 novembre 2016

To convert ruby unpack equivalent in java

I am complete noob in rails and never worked on it. I have a ruby code,

token.unpack('m0').first.unpack('H*').first

which is converting

R1YKdH//cZKubZlA09ZIVZQ5/cxInvmokIACnl3MKJ0=

to

47560a747fff7192ae6d9940d3d648559439fdcc489ef9a89080029e5dcc289d

I need to implement the same functionality in Java. Can anyone please help me out with this.

Aucun commentaire:

Enregistrer un commentaire