TypeScript : Insufficient encryption key length