package Ġcom . ako ch dev . data . extensions Ċ Ċ import Ġjava . math . BigInteger Ċ import Ġjava . security . Message Digest Ċ Ċ private Ġconst Ġval ĠMD 5 _ ALGORITHM Ġ= Ġ" MD 5 " Ċ private Ġconst Ġval ĠPOS ITIVE Ġ= Ġ 1 Ċ private Ġconst Ġval ĠSTRING _ RAD IX Ġ= Ġ 1 6 Ċ private Ġconst Ġval ĠKEY _ LENGTH Ġ= Ġ 3 2 Ċ private Ġconst Ġval ĠZERO _ AS _ CHAR Ġ= Ġ' 0 ' Ċ Ċ fun ĠString . to Mar vel Hash (): ĠString Ġ{ ĊĠĠĠ Ġval Ġmd 5 Digest Ġ= ĠMessage Digest . getInstance ( MD 5 _ ALGORITHM ) ĊĠĠĠ Ġreturn ĠBigInteger ( POSITIVE , Ġmd 5 Digest . digest ( this . toByteArray ())) ĊĠĠĠĠĠĠĠ Ġ. toString ( STRING _ RAD IX ) ĊĠĠĠĠĠĠĠ Ġ. pad Start ( KEY _ LENGTH , ĠZERO _ AS _ CHAR ) Ċ } Ċ Ċ fun ĠString . to Secure Url (): ĠString Ġ= Ġthis . replace (" http :// ", Ġ" https :// ")