阅读(579) 书签 (0)

ChatGPT 安全和隐私 提示词(Prompts)

2023-06-28 14:50 更新

标签:软件开发

中文提示词:

评估给定的[语言]代码的安全性并提出改进建议:[代码片段]。

英文提示词:

Evaluate the security of the given [language] code and suggest improvements: [code snippet].

中文提示词:

识别以下[语言]代码中的潜在隐私风险并推荐缓解策略:[代码片段]。

英文提示词:

Identify potential privacy risks in the following [language] code and recommend mitigation strategies: [code snippet].

中文提示词:

提出对给定的[语言]代码进行更改以提高其对常见安全威胁(如SQL注入、XSS、CSRF)的抵抗能力:[代码片段]。

英文提示词:

Propose changes to the given [language] code to improve its resistance to common security threats (e.g., SQL injection, XSS, CSRF): [code snippet].

中文提示词:

在[特定行业标准或法规]的背景下分析给定的[语言]代码的安全性:[代码片段]。

英文提示词:

Analyze the security of the given [language] code in the context of [specific industry standards or regulations]: [code snippet].

中文提示词:

针对给定[语言]代码中的敏感数据,建议使用加密或哈希算法来保护其安全性:[代码片段]。

英文提示词:

Suggest encryption or hashing algorithms to secure sensitive data in the given [language] code: [code snippet].

提示

  • ChatGPT 对英文的理解更为出色。如果你英文还可以,建议复制英文提示词。
  • 英文提示词带来的回复也很可能是英文的,可以在提示词结尾添加 respond in Chinese,将回复指定为中文。