Routing in delay tolerant networks is a major problem as no prior knowledge about the network is known to one in advance and frequent partitioning or disconnection also occurs. In DTN the contact between nodes also occurs opportunistically. In this paper, the authors use the concept of erasure coding based routing in DTN which is the enhancement over simple replication strategy. As transmission of erasure codes is vulnerable to attacks so they provide various mechanism to make the erasure codes more secure. Earlier the erasure codes are unsecure and their work focused on providing security to various code blocks that are transmitted through different path of the network.