added player encrypt api