Decoding and EncodingKey generation implemented