arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1807.01095cs.CRcs.SE
收藏

代码示例对加密API的可用性和安全性影响- CryptoExamples:一个免费、最小、完整和安全的加密示例平台

Usability and Security Effects of Code Examples on Crypto APIs - CryptoExamples: A platform for free, minimal, complete and secure crypto examples

Kai Mindermann, Stefan Wagner

摘要:

上下文:据说加密API不可用,研究人员建议在文档中添加示例代码。目的:我们希望为加密代码示例创建一个免费平台,以提高非安全专家创建的应用程序的可用性和安全性。方法:我们创建了开源网络平台CryptoExamples,并进行了一项受控实验,其中58名学生将对称加密添加到Java程序中。然后我们测量了可用性和安全性。结果如下:使用该平台的参与者不仅效率显著提高(+73%),而且他们的代码包含的安全漏洞也显著减少(-66%)。结论:通过CryptoExamples,可以弥合难以更改的API文档与完整安全的代码示例之间的差距。不过,该平台还需要更多的代码示例。

英文摘要:

Context: Cryptographic APIs are said to be not usable and researchers suggest to add example code to the documentation. Aim: We wanted to create a free platform for cryptographic code examples that improves the usability and security of created applications by non security experts. Method: We created the open-source web platform CryptoExamples and conducted a controlled experiment where 58 students added symmetric encryption to a Java program. We then measured the usability and security. Results: The participants who used the platform were not only significantly more effective (+73 %) but also their code contained significantly less possible security vulnerabilities (-66 %). Conclusions: With CryptoExamples the gap between hard to change API documentation and the need for complete and secure code examples can be closed. Still, the platform needs more code examples.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑