update encryption code, add source ref