first working encryption protype
working encryption protype - hex decoding needed