use ns as secret key